| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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/modules/remote_bitrate_estimator/test/bwe_test_baselinefile.h" | 11 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_baselinefile.h" |
| 12 | 12 |
| 13 #include <stdio.h> | 13 #include <stdio.h> |
| 14 | 14 |
| 15 #include <algorithm> | 15 #include <algorithm> |
| 16 #include <memory> | 16 #include <memory> |
| 17 #include <vector> | 17 #include <vector> |
| 18 | 18 |
| 19 #include "webrtc/base/constructormagic.h" | |
| 20 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_fileutils.h" | 19 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_fileutils.h" |
| 21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" | 20 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" |
| 21 #include "webrtc/rtc_base/constructormagic.h" |
| 22 #include "webrtc/test/testsupport/fileutils.h" | 22 #include "webrtc/test/testsupport/fileutils.h" |
| 23 | 23 |
| 24 namespace webrtc { | 24 namespace webrtc { |
| 25 namespace testing { | 25 namespace testing { |
| 26 namespace bwe { | 26 namespace bwe { |
| 27 | 27 |
| 28 // The format of BWE test baseline files is extremely simple: | 28 // The format of BWE test baseline files is extremely simple: |
| 29 // 1. All read/written entities are 32-bit unsigned integers in network byte | 29 // 1. All read/written entities are 32-bit unsigned integers in network byte |
| 30 // order (Big Endian). | 30 // order (Big Endian). |
| 31 // 2. Files beging with a 2 word header containing a magic marker and file | 31 // 2. Files beging with a 2 word header containing a magic marker and file |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 result.reset(new BaseLineFileVerify(filepath, !write_output_file)); | 159 result.reset(new BaseLineFileVerify(filepath, !write_output_file)); |
| 160 if (write_output_file) { | 160 if (write_output_file) { |
| 161 // Takes ownership of the |verifier| instance. | 161 // Takes ownership of the |verifier| instance. |
| 162 result.reset(new BaseLineFileUpdate(filepath, result.release())); | 162 result.reset(new BaseLineFileUpdate(filepath, result.release())); |
| 163 } | 163 } |
| 164 return result.release(); | 164 return result.release(); |
| 165 } | 165 } |
| 166 } // namespace bwe | 166 } // namespace bwe |
| 167 } // namespace testing | 167 } // namespace testing |
| 168 } // namespace webrtc | 168 } // namespace webrtc |
| OLD | NEW |