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