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

Unified Diff: chrome/browser/policy/cloud_policy_browsertest.cc

Issue 11946017: Remove old cloud policy code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually upload the code I intended to upload. Created 7 years, 11 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/policy/cloud_policy_browsertest.cc
diff --git a/chrome/browser/policy/cloud_policy_browsertest.cc b/chrome/browser/policy/cloud_policy_browsertest.cc
index 50d6c3a41452ee12d79cbde28b564528dfe51acd..0869b594a7643ba787de82fd7a706ae955e2dbd2 100644
--- a/chrome/browser/policy/cloud_policy_browsertest.cc
+++ b/chrome/browser/policy/cloud_policy_browsertest.cc
@@ -14,7 +14,6 @@
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/policy/cloud_policy_client.h"
#include "chrome/browser/policy/cloud_policy_constants.h"
-#include "chrome/browser/policy/cloud_policy_data_store.h"
#include "chrome/browser/policy/policy_map.h"
#include "chrome/browser/policy/policy_service.h"
#include "chrome/browser/policy/proto/chrome_settings.pb.h"
@@ -109,25 +108,6 @@ std::string GetTestPolicy() {
GetTestUser());
}
-#if defined(OS_CHROMEOS)
-void SetUpOldStackBeforeCreatingBrowser() {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- command_line->AppendSwitch(switches::kDisableCloudPolicyService);
-}
-
-void SetUpOldStackAfterCreatingBrowser(Browser* browser) {
- // Flush the token cache loading.
- content::RunAllPendingInMessageLoop(content::BrowserThread::FILE);
- content::RunAllPendingInMessageLoop();
- // Set a fake gaia token.
- BrowserPolicyConnector* connector =
- g_browser_process->browser_policy_connector();
- CloudPolicyDataStore* store = connector->GetUserCloudPolicyDataStore();
- ASSERT_TRUE(store);
- store->SetupForTesting("", "bogus", GetTestUser(), "bogus", true);
-}
-#endif
-
void SetUpNewStackBeforeCreatingBrowser() {
CommandLine* command_line = CommandLine::ForCurrentProcess();
command_line->AppendSwitch(switches::kLoadCloudPolicyOnSignin);
@@ -278,15 +258,6 @@ IN_PROC_BROWSER_TEST_P(CloudPolicyTest, FetchPolicy) {
expected.Equals(policy_service->GetPolicies(POLICY_DOMAIN_CHROME, "")));
}
-#if defined(OS_CHROMEOS)
-INSTANTIATE_TEST_CASE_P(
- OldStackCloudPolicyTest,
- CloudPolicyTest,
- testing::Values(
- TestSetup(SetUpOldStackBeforeCreatingBrowser,
- SetUpOldStackAfterCreatingBrowser)));
-#endif
-
INSTANTIATE_TEST_CASE_P(
Joao da Silva 2013/01/17 09:38:05 There's no need to make these test parameterized n
Mattias Nissler (ping if slow) 2013/01/22 10:31:39 Done.
NewStackCloudPolicyTest,
CloudPolicyTest,

Powered by Google App Engine
This is Rietveld 408576698