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(); |
-} |