OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/test/testsupport/isolated_output.h" | 11 #include "webrtc/test/testsupport/isolated_output.h" |
12 | 12 |
13 #include <string.h> | 13 #include <string.h> |
14 | 14 |
15 #include "gflags/gflags.h" | 15 #include "gflags/gflags.h" |
16 #include "webrtc/base/file.h" | 16 #include "webrtc/rtc_base/file.h" |
17 #include "webrtc/base/logging.h" | 17 #include "webrtc/rtc_base/logging.h" |
18 #include "webrtc/base/pathutils.h" | 18 #include "webrtc/rtc_base/pathutils.h" |
19 #include "webrtc/test/testsupport/fileutils.h" | 19 #include "webrtc/test/testsupport/fileutils.h" |
20 | 20 |
21 DEFINE_string(isolated_out_dir, webrtc::test::OutputPath(), | 21 DEFINE_string(isolated_out_dir, webrtc::test::OutputPath(), |
22 "The isolated output folder provided by swarming test framework."); | 22 "The isolated output folder provided by swarming test framework."); |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace test { | 25 namespace test { |
26 | 26 |
27 bool WriteIsolatedOutput(const char* filename, | 27 bool WriteIsolatedOutput(const char* filename, |
28 const uint8_t* buffer, | 28 const uint8_t* buffer, |
(...skipping 15 matching lines...) Expand all Loading... |
44 } | 44 } |
45 | 45 |
46 bool WriteIsolatedOutput(const char* filename, const std::string& content) { | 46 bool WriteIsolatedOutput(const char* filename, const std::string& content) { |
47 return WriteIsolatedOutput(filename, | 47 return WriteIsolatedOutput(filename, |
48 reinterpret_cast<const uint8_t*>(content.c_str()), | 48 reinterpret_cast<const uint8_t*>(content.c_str()), |
49 content.length()); | 49 content.length()); |
50 } | 50 } |
51 | 51 |
52 } // namespace test | 52 } // namespace test |
53 } // namespace webrtc | 53 } // namespace webrtc |
OLD | NEW |