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

Unified Diff: chrome/renderer/net/render_dns_master_unittest.cc

Issue 2866026: Rename Dns prefetching files to Predictor files... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | « chrome/renderer/net/render_dns_master.cc ('k') | chrome/renderer/net/render_dns_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/net/render_dns_master_unittest.cc
===================================================================
--- chrome/renderer/net/render_dns_master_unittest.cc (revision 50915)
+++ chrome/renderer/net/render_dns_master_unittest.cc (working copy)
@@ -1,36 +0,0 @@
-// Copyright (c) 2006-2010 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.
-
-// Single threaded tests of RendererNetPredictor functionality.
-
-#include "chrome/renderer/net/render_dns_master.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-#include <algorithm>
-
-namespace {
-
-class RenderDnsMasterTest : public testing::Test {
-};
-
-TEST(RenderDnsMasterTest, NumericIpDiscardCheck) {
- // Regular names.
- const std::string A("a.com"), B("b.net"), C("www.other.uk");
- // Combination of digits plus dots.
- const std::string N1("1.3."), N2("5.5.7.12");
-
-#define TESTNAME(string) RendererNetPredictor::is_numeric_ip((string.data()), \
- (string).size())
-
- EXPECT_TRUE(TESTNAME(N1));
- EXPECT_TRUE(TESTNAME(N2));
-
- EXPECT_FALSE(TESTNAME(A));
- EXPECT_FALSE(TESTNAME(B));
- EXPECT_FALSE(TESTNAME(C));
-
-#undef TESTNAME
-}
-
-} // namespace anonymous
« no previous file with comments | « chrome/renderer/net/render_dns_master.cc ('k') | chrome/renderer/net/render_dns_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698