| 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/audio_processing/transient/file_utils.h" | 11 #include "webrtc/modules/audio_processing/transient/file_utils.h" |
| 12 | 12 |
| 13 #include <string.h> | 13 #include <string.h> |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "webrtc/base/scoped_ptr.h" | 17 #include "webrtc/base/scoped_ptr.h" |
| 18 #include "webrtc/system_wrappers/interface/file_wrapper.h" | 18 #include "webrtc/system_wrappers/include/file_wrapper.h" |
| 19 #include "webrtc/test/testsupport/fileutils.h" | 19 #include "webrtc/test/testsupport/fileutils.h" |
| 20 #include "webrtc/test/testsupport/gtest_disable.h" | 20 #include "webrtc/test/testsupport/gtest_disable.h" |
| 21 #include "webrtc/typedefs.h" | 21 #include "webrtc/typedefs.h" |
| 22 | 22 |
| 23 namespace webrtc { | 23 namespace webrtc { |
| 24 | 24 |
| 25 static const uint8_t kPiBytesf[4] = {0xDB, 0x0F, 0x49, 0x40}; | 25 static const uint8_t kPiBytesf[4] = {0xDB, 0x0F, 0x49, 0x40}; |
| 26 static const uint8_t kEBytesf[4] = {0x54, 0xF8, 0x2D, 0x40}; | 26 static const uint8_t kEBytesf[4] = {0x54, 0xF8, 0x2D, 0x40}; |
| 27 static const uint8_t kAvogadroBytesf[4] = {0x2F, 0x0C, 0xFF, 0x66}; | 27 static const uint8_t kAvogadroBytesf[4] = {0x2F, 0x0C, 0xFF, 0x66}; |
| 28 | 28 |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 EXPECT_EQ(0u, WriteInt16BufferToFile(file.get(), 1, NULL)); | 479 EXPECT_EQ(0u, WriteInt16BufferToFile(file.get(), 1, NULL)); |
| 480 EXPECT_EQ(0u, WriteInt16BufferToFile(file.get(), 0, int16_buffer.get())); | 480 EXPECT_EQ(0u, WriteInt16BufferToFile(file.get(), 0, int16_buffer.get())); |
| 481 | 481 |
| 482 EXPECT_EQ(0u, WriteDoubleBufferToFile(NULL, 1, double_buffer.get())); | 482 EXPECT_EQ(0u, WriteDoubleBufferToFile(NULL, 1, double_buffer.get())); |
| 483 EXPECT_EQ(0u, WriteDoubleBufferToFile(file.get(), 1, NULL)); | 483 EXPECT_EQ(0u, WriteDoubleBufferToFile(file.get(), 1, NULL)); |
| 484 EXPECT_EQ(0u, WriteDoubleBufferToFile(file.get(), 0, double_buffer.get())); | 484 EXPECT_EQ(0u, WriteDoubleBufferToFile(file.get(), 0, double_buffer.get())); |
| 485 } | 485 } |
| 486 | 486 |
| 487 } // namespace webrtc | 487 } // namespace webrtc |
| 488 | 488 |
| OLD | NEW |