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

Unified Diff: net/proxy/dhcp_proxy_script_fetcher_factory_unittest.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/proxy/dhcp_proxy_script_fetcher_factory.cc ('k') | net/proxy/dhcp_proxy_script_fetcher_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc
diff --git a/net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc b/net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc
deleted file mode 100644
index 9eb7c67f1f1f41cbabb683f287532a0e52a11b30..0000000000000000000000000000000000000000
--- a/net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2012 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/proxy/dhcp_proxy_script_fetcher.h"
-#include "net/proxy/dhcp_proxy_script_fetcher_factory.h"
-#include "net/url_request/url_request_test_util.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace net {
-namespace {
-
-TEST(DhcpProxyScriptFetcherFactoryTest, DoNothingWhenDisabled) {
- DhcpProxyScriptFetcherFactory factory;
- factory.set_enabled(false);
- scoped_ptr<DhcpProxyScriptFetcher> fetcher(factory.Create(NULL));
- EXPECT_EQ("", fetcher->GetFetcherName());
-}
-
-#if defined(OS_WIN)
-TEST(DhcpProxyScriptFetcherFactoryTest, WindowsFetcherOnWindows) {
- DhcpProxyScriptFetcherFactory factory;
- factory.set_enabled(true);
-
- scoped_ptr<TestURLRequestContext> context(new TestURLRequestContext());
- scoped_ptr<DhcpProxyScriptFetcher> fetcher(factory.Create(context.get()));
- EXPECT_EQ("win", fetcher->GetFetcherName());
-}
-#endif // defined(OS_WIN)
-
-TEST(DhcpProxyScriptFetcherFactoryTest, IsSupported) {
-#if defined(OS_WIN)
- ASSERT_TRUE(DhcpProxyScriptFetcherFactory::IsSupported());
-#else
- ASSERT_FALSE(DhcpProxyScriptFetcherFactory::IsSupported());
-#endif // defined(OS_WIN)
-}
-
-TEST(DhcpProxyScriptFetcherFactoryTest, SetEnabled) {
- DhcpProxyScriptFetcherFactory factory;
-#if defined(OS_WIN)
- EXPECT_TRUE(factory.enabled());
-#else
- EXPECT_FALSE(factory.enabled());
-#endif // defined(OS_WIN)
-
- factory.set_enabled(false);
- EXPECT_FALSE(factory.enabled());
-
- factory.set_enabled(true);
-#if defined(OS_WIN)
- EXPECT_TRUE(factory.enabled());
-#else
- EXPECT_FALSE(factory.enabled());
-#endif // defined(OS_WIN)
-}
-
-} // namespace
-} // namespace net
« no previous file with comments | « net/proxy/dhcp_proxy_script_fetcher_factory.cc ('k') | net/proxy/dhcp_proxy_script_fetcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698