Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Side by Side Diff: webrtc/modules/video_coding/h264_sprop_parameter_sets_unittest.cc

Issue 2603203003: Revert of Replace basictypes.h with stdint.h for int_t types. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/time_util.h ('k') | webrtc/modules/video_coding/utility/default_video_bitrate_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698