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

Unified Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc

Issue 1078213004: Remove --check-cloud-print-connector-policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sat Apr 11 02:29:11 PDT 2015 Created 5 years, 8 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
Index: chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc
diff --git a/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc b/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc
index 15b6bc40ca69effaaa0ff00b184fab2c65225a78..af8efab44ae1f5013ba152ea2e8588162c520683 100644
--- a/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc
+++ b/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc
@@ -436,33 +436,3 @@ TEST_F(CloudPrintProxyPolicyTest,
EXPECT_EQ(MockServiceProcessControl::EnabledUserId(),
prefs->GetString(prefs::kCloudPrintEmail));
}
-
-KeyedService* TestCloudPrintProxyServiceFactory(
- content::BrowserContext* profile) {
- TestCloudPrintProxyService* service =
- new TestCloudPrintProxyService(static_cast<Profile*>(profile));
-
- service->GetMockServiceProcessControl()->SetConnectSuccessMockExpectations(
- MockServiceProcessControl::kServiceStateEnabled, true);
- service->GetMockServiceProcessControl()->SetWillBeDisabledExpectations();
-
- service->Initialize();
- return service;
-}
-
-TEST_F(CloudPrintProxyPolicyTest, StartupBrowserCreatorWithCommandLine) {
- TestingPrefServiceSyncable* prefs = profile_.GetTestingPrefService();
- prefs->SetUserPref(prefs::kCloudPrintEmail,
- new base::StringValue(std::string()));
- prefs->SetManagedPref(prefs::kCloudPrintProxyEnabled,
- new base::FundamentalValue(false));
-
- CloudPrintProxyServiceFactory::GetInstance()->
- SetTestingFactory(&profile_, TestCloudPrintProxyServiceFactory);
-
- base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
- command_line.AppendSwitch(switches::kCheckCloudPrintConnectorPolicy);
-
- EXPECT_FALSE(LaunchBrowser(command_line, &profile_));
- base::RunLoop().RunUntilIdle();
-}

Powered by Google App Engine
This is Rietveld 408576698