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

Unified Diff: webrtc/config_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/config.cc ('k') | webrtc/logging/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/config_unittest.cc
diff --git a/webrtc/config_unittest.cc b/webrtc/config_unittest.cc
deleted file mode 100644
index 03784d4afcc899bd37be829b6ae46a99bbada6ea..0000000000000000000000000000000000000000
--- a/webrtc/config_unittest.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#include "webrtc/config.h"
-
-#include <vector>
-
-#include "webrtc/rtc_base/gunit.h"
-
-using webrtc::RtpExtension;
-
-static const char kExtensionUri1[] = "extension-uri1";
-static const char kExtensionUri2[] = "extension-uri2";
-
-static const RtpExtension kExtension1(kExtensionUri1, 1);
-static const RtpExtension kExtension1Encrypted(kExtensionUri1, 10, true);
-static const RtpExtension kExtension2(kExtensionUri2, 2);
-
-TEST(RtpExtensionTest, FilterDuplicateNonEncrypted) {
- std::vector<RtpExtension> extensions;
- std::vector<RtpExtension> filtered;
-
- extensions.push_back(kExtension1);
- extensions.push_back(kExtension1Encrypted);
- filtered = RtpExtension::FilterDuplicateNonEncrypted(extensions);
- EXPECT_EQ(1u, filtered.size());
- EXPECT_EQ(std::vector<RtpExtension>{kExtension1Encrypted}, filtered);
-
- extensions.clear();
- extensions.push_back(kExtension1Encrypted);
- extensions.push_back(kExtension1);
- filtered = RtpExtension::FilterDuplicateNonEncrypted(extensions);
- EXPECT_EQ(1u, filtered.size());
- EXPECT_EQ(std::vector<RtpExtension>{kExtension1Encrypted}, filtered);
-
- extensions.clear();
- extensions.push_back(kExtension1);
- extensions.push_back(kExtension2);
- filtered = RtpExtension::FilterDuplicateNonEncrypted(extensions);
- EXPECT_EQ(2u, filtered.size());
- EXPECT_EQ(extensions, filtered);
-}
« no previous file with comments | « webrtc/config.cc ('k') | webrtc/logging/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698