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

Unified Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 2907493002: ChromeOS: Per-user time zone: refactor tests first. (Closed)
Patch Set: Fix debug build Created 3 years, 7 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/extensions/extension_service_unittest.cc
diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc
index 6e3e7e310b4cf8ac44ad033a314d0d5505069bbf..04fcdd5a66af62eef7465d2d20362d7234309b70 100644
--- a/chrome/browser/extensions/extension_service_unittest.cc
+++ b/chrome/browser/extensions/extension_service_unittest.cc
@@ -146,12 +146,6 @@
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
-#if defined(OS_CHROMEOS)
-#include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h"
-#include "chrome/browser/chromeos/settings/cros_settings.h"
-#include "chrome/browser/chromeos/settings/device_settings_service.h"
-#endif
-
// The blacklist tests rely on the safe-browsing database.
#if defined(SAFE_BROWSING_DB_LOCAL)
#define ENABLE_BLACKLIST_TESTS
@@ -5564,12 +5558,6 @@ TEST_F(ExtensionServiceTestSimple, Enabledness) {
ExtensionErrorReporter::Init(false); // no noisy errors
ExtensionsReadyRecorder recorder;
std::unique_ptr<TestingProfile> profile(new TestingProfile());
-#if defined OS_CHROMEOS
- chromeos::ScopedTestDeviceSettingsService device_settings_service;
- chromeos::ScopedTestCrosSettings cros_settings;
- std::unique_ptr<chromeos::ScopedTestUserManager> user_manager(
- new chromeos::ScopedTestUserManager);
-#endif
std::unique_ptr<base::CommandLine> command_line;
base::FilePath install_dir = profile->GetPath()
.AppendASCII(extensions::kInstallDirectoryName);
@@ -5586,9 +5574,6 @@ TEST_F(ExtensionServiceTestSimple, Enabledness) {
service->Init();
content::RunAllBlockingPoolTasksUntilIdle();
EXPECT_TRUE(recorder.ready());
-#if defined OS_CHROMEOS
- user_manager.reset();
-#endif
// If either the command line or pref is set, we are disabled.
recorder.set_ready(false);

Powered by Google App Engine
This is Rietveld 408576698