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/modules/video_coding/h264_sprop_parameter_sets.h" | 11 #include "webrtc/modules/video_coding/h264_sprop_parameter_sets.h" |
12 | 12 |
13 #include <stdint.h> | |
14 | |
15 #include <vector> | 13 #include <vector> |
16 | 14 #include "webrtc/base/basictypes.h" |
17 #include "webrtc/test/gtest.h" | 15 #include "webrtc/test/gtest.h" |
18 | 16 |
19 namespace webrtc { | 17 namespace webrtc { |
20 | 18 |
21 class H264SpropParameterSetsTest : public testing::Test { | 19 class H264SpropParameterSetsTest : public testing::Test { |
22 public: | 20 public: |
23 H264SpropParameterSets h264_sprop; | 21 H264SpropParameterSets h264_sprop; |
24 }; | 22 }; |
25 | 23 |
26 TEST_F(H264SpropParameterSetsTest, Base64DecodeSprop) { | 24 TEST_F(H264SpropParameterSetsTest, Base64DecodeSprop) { |
(...skipping 11 matching lines...) Expand all Loading... |
38 EXPECT_FALSE(h264_sprop.DecodeSprop("")); | 36 EXPECT_FALSE(h264_sprop.DecodeSprop("")); |
39 EXPECT_FALSE(h264_sprop.DecodeSprop(",iA==")); | 37 EXPECT_FALSE(h264_sprop.DecodeSprop(",iA==")); |
40 EXPECT_FALSE(h264_sprop.DecodeSprop("iA==,")); | 38 EXPECT_FALSE(h264_sprop.DecodeSprop("iA==,")); |
41 EXPECT_TRUE(h264_sprop.DecodeSprop("iA==,iA==")); | 39 EXPECT_TRUE(h264_sprop.DecodeSprop("iA==,iA==")); |
42 EXPECT_FALSE(h264_sprop.DecodeSprop("--,--")); | 40 EXPECT_FALSE(h264_sprop.DecodeSprop("--,--")); |
43 EXPECT_FALSE(h264_sprop.DecodeSprop(",,")); | 41 EXPECT_FALSE(h264_sprop.DecodeSprop(",,")); |
44 EXPECT_FALSE(h264_sprop.DecodeSprop("iA==")); | 42 EXPECT_FALSE(h264_sprop.DecodeSprop("iA==")); |
45 } | 43 } |
46 | 44 |
47 } // namespace webrtc | 45 } // namespace webrtc |
OLD | NEW |