OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 <string.h> | 11 #include <string.h> |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "webrtc/test/gtest.h" |
16 #include "webrtc/test/rtp_file_reader.h" | 16 #include "webrtc/test/rtp_file_reader.h" |
17 #include "webrtc/test/rtp_file_writer.h" | 17 #include "webrtc/test/rtp_file_writer.h" |
18 #include "webrtc/test/testsupport/fileutils.h" | 18 #include "webrtc/test/testsupport/fileutils.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 class RtpFileWriterTest : public ::testing::Test { | 22 class RtpFileWriterTest : public ::testing::Test { |
23 public: | 23 public: |
24 void Init(const std::string& filename) { | 24 void Init(const std::string& filename) { |
25 filename_ = test::OutputPath() + filename; | 25 filename_ = test::OutputPath() + filename; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 }; | 67 }; |
68 | 68 |
69 TEST_F(RtpFileWriterTest, WriteToRtpDump) { | 69 TEST_F(RtpFileWriterTest, WriteToRtpDump) { |
70 Init("test_rtp_file_writer.rtp"); | 70 Init("test_rtp_file_writer.rtp"); |
71 WriteRtpPackets(10); | 71 WriteRtpPackets(10); |
72 CloseOutputFile(); | 72 CloseOutputFile(); |
73 VerifyFileContents(10); | 73 VerifyFileContents(10); |
74 } | 74 } |
75 | 75 |
76 } // namespace webrtc | 76 } // namespace webrtc |
OLD | NEW |