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

Unified Diff: net/quic/quic_utils_chromium_test.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « net/quic/quic_utils_chromium.h ('k') | net/quic/quic_utils_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_utils_chromium_test.cc
diff --git a/net/quic/quic_utils_chromium_test.cc b/net/quic/quic_utils_chromium_test.cc
deleted file mode 100644
index b9620cfaf4a048fdfd207d2fd189942534dc12e9..0000000000000000000000000000000000000000
--- a/net/quic/quic_utils_chromium_test.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/quic/quic_utils_chromium.h"
-
-#include <map>
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-using std::map;
-
-namespace net {
-namespace test {
-namespace {
-
-TEST(QuicUtilsChromiumTest, FindOrNullTest) {
- map<int, int> m;
- m[0] = 2;
-
- // Check FindOrNull
- int* p1 = FindOrNull(m, 0);
- CHECK_EQ(*p1, 2);
- ++(*p1);
- const map<int, int>& const_m = m;
- const int* p2 = FindOrNull(const_m, 0);
- CHECK_EQ(*p2, 3);
- CHECK(FindOrNull(m, 1) == nullptr);
-}
-
-TEST(QuicUtilsChromiumTest, FindOrDieTest) {
- std::map<int, int> m;
- m[10] = 15;
- EXPECT_EQ(15, FindOrDie(m, 10));
- // TODO(rtenneti): Use the latest DEATH macros after merging with latest rch's
- // changes.
- // ASSERT_DEATH(FindOrDie(m, 8), "Map key not found: 8");
-
- // Make sure the non-const reference returning version works.
- FindOrDie(m, 10) = 20;
- EXPECT_EQ(20, FindOrDie(m, 10));
-
- // Make sure we can lookup values in a const map.
- const map<int, int>& const_m = m;
- EXPECT_EQ(20, FindOrDie(const_m, 10));
-}
-
-} // namespace
-} // namespace test
-} // namespace net
« no previous file with comments | « net/quic/quic_utils_chromium.h ('k') | net/quic/quic_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698