OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "chrome/browser/extensions/activity_log/activity_log.h" | 7 #include "chrome/browser/extensions/activity_log/activity_log.h" |
8 #include "chrome/browser/extensions/api/activity_log_private/activity_log_privat
e_api.h" | 8 #include "chrome/browser/extensions/api/activity_log_private/activity_log_privat
e_api.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/extensions/test_extension_system.h" | 10 #include "chrome/browser/extensions/test_extension_system.h" |
11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
13 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 13 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
14 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
15 #include "extensions/common/extension_builder.h" | 15 #include "extensions/common/extension_builder.h" |
16 | 16 |
17 #if defined OS_CHROMEOS | 17 #if defined OS_CHROMEOS |
18 #include "chrome/browser/chromeos/login/user_manager.h" | 18 #include "chrome/browser/chromeos/login/users/user_manager.h" |
19 #include "chrome/browser/chromeos/settings/cros_settings.h" | 19 #include "chrome/browser/chromeos/settings/cros_settings.h" |
20 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 20 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 | 24 |
25 const char* kExtensionID = "abjoigjokfeibfhiahiijggogladbmfm"; | 25 const char* kExtensionID = "abjoigjokfeibfhiahiijggogladbmfm"; |
26 | 26 |
27 class ActivityLogEnabledTest : public ChromeRenderViewHostTestHarness { | 27 class ActivityLogEnabledTest : public ChromeRenderViewHostTestHarness { |
28 protected: | 28 protected: |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 EXPECT_TRUE(activity_log->IsDatabaseEnabled()); | 267 EXPECT_TRUE(activity_log->IsDatabaseEnabled()); |
268 EXPECT_EQ(0, | 268 EXPECT_EQ(0, |
269 profile->GetPrefs()->GetInteger(prefs::kWatchdogExtensionActive)); | 269 profile->GetPrefs()->GetInteger(prefs::kWatchdogExtensionActive)); |
270 EXPECT_FALSE(activity_log->IsWatchdogAppActive()); | 270 EXPECT_FALSE(activity_log->IsWatchdogAppActive()); |
271 | 271 |
272 // Cleanup. | 272 // Cleanup. |
273 *CommandLine::ForCurrentProcess() = saved_cmdline_; | 273 *CommandLine::ForCurrentProcess() = saved_cmdline_; |
274 } | 274 } |
275 | 275 |
276 } // namespace extensions | 276 } // namespace extensions |
OLD | NEW |