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

Side by Side Diff: webrtc/api/rtpparameters_unittest.cc

Issue 3004723002: Move RtpExtension to api/ directory and config.h/.cc to call/. (Closed)
Patch Set: Fix nit. Created 3 years, 3 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
« no previous file with comments | « webrtc/api/rtpparameters.cc ('k') | webrtc/call/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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/config.h" 11 #include <utility>
12 12
13 #include <vector> 13 #include "webrtc/api/rtpparameters.h"
14 #include "webrtc/test/gtest.h"
14 15
15 #include "webrtc/rtc_base/gunit.h" 16 namespace webrtc {
16 17
17 using webrtc::RtpExtension; 18 using webrtc::RtpExtension;
18 19
19 static const char kExtensionUri1[] = "extension-uri1"; 20 static const char kExtensionUri1[] = "extension-uri1";
20 static const char kExtensionUri2[] = "extension-uri2"; 21 static const char kExtensionUri2[] = "extension-uri2";
21 22
22 static const RtpExtension kExtension1(kExtensionUri1, 1); 23 static const RtpExtension kExtension1(kExtensionUri1, 1);
23 static const RtpExtension kExtension1Encrypted(kExtensionUri1, 10, true); 24 static const RtpExtension kExtension1Encrypted(kExtensionUri1, 10, true);
24 static const RtpExtension kExtension2(kExtensionUri2, 2); 25 static const RtpExtension kExtension2(kExtensionUri2, 2);
25 26
(...skipping 14 matching lines...) Expand all
40 EXPECT_EQ(1u, filtered.size()); 41 EXPECT_EQ(1u, filtered.size());
41 EXPECT_EQ(std::vector<RtpExtension>{kExtension1Encrypted}, filtered); 42 EXPECT_EQ(std::vector<RtpExtension>{kExtension1Encrypted}, filtered);
42 43
43 extensions.clear(); 44 extensions.clear();
44 extensions.push_back(kExtension1); 45 extensions.push_back(kExtension1);
45 extensions.push_back(kExtension2); 46 extensions.push_back(kExtension2);
46 filtered = RtpExtension::FilterDuplicateNonEncrypted(extensions); 47 filtered = RtpExtension::FilterDuplicateNonEncrypted(extensions);
47 EXPECT_EQ(2u, filtered.size()); 48 EXPECT_EQ(2u, filtered.size());
48 EXPECT_EQ(extensions, filtered); 49 EXPECT_EQ(extensions, filtered);
49 } 50 }
51 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/rtpparameters.cc ('k') | webrtc/call/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698