OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/json/json_writer.h" | 6 #include "base/json/json_writer.h" |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/extensions/api/storage/settings_frontend.h" | 10 #include "chrome/browser/extensions/api/storage/settings_frontend.h" |
11 #include "chrome/browser/extensions/api/storage/settings_namespace.h" | |
12 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" | 11 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" |
13 #include "chrome/browser/extensions/extension_apitest.h" | 12 #include "chrome/browser/extensions/extension_apitest.h" |
14 #include "chrome/browser/extensions/extension_system_factory.h" | 13 #include "chrome/browser/extensions/extension_system_factory.h" |
15 #include "chrome/browser/extensions/extension_test_message_listener.h" | 14 #include "chrome/browser/extensions/extension_test_message_listener.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
18 #include "chrome/test/base/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
| 18 #include "extensions/browser/api/storage/settings_namespace.h" |
19 #include "extensions/browser/extension_system.h" | 19 #include "extensions/browser/extension_system.h" |
20 #include "extensions/common/value_builder.h" | 20 #include "extensions/common/value_builder.h" |
21 #include "sync/api/fake_sync_change_processor.h" | 21 #include "sync/api/fake_sync_change_processor.h" |
22 #include "sync/api/sync_change.h" | 22 #include "sync/api/sync_change.h" |
23 #include "sync/api/sync_change_processor.h" | 23 #include "sync/api/sync_change_processor.h" |
24 #include "sync/api/sync_change_processor_wrapper_for_test.h" | 24 #include "sync/api/sync_change_processor_wrapper_for_test.h" |
25 #include "sync/api/sync_error_factory.h" | 25 #include "sync/api/sync_error_factory.h" |
26 #include "sync/api/sync_error_factory_mock.h" | 26 #include "sync/api/sync_error_factory_mock.h" |
27 #include "testing/gmock/include/gmock/gmock.h" | 27 #include "testing/gmock/include/gmock/gmock.h" |
28 | 28 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 // ENABLE_CONFIGURATION_POLICY is not defined. | 571 // ENABLE_CONFIGURATION_POLICY is not defined. |
572 SettingsFrontend* frontend = SettingsFrontend::Get(browser()->profile()); | 572 SettingsFrontend* frontend = SettingsFrontend::Get(browser()->profile()); |
573 frontend->DisableStorageForTesting(MANAGED); | 573 frontend->DisableStorageForTesting(MANAGED); |
574 EXPECT_FALSE(frontend->IsStorageEnabled(MANAGED)); | 574 EXPECT_FALSE(frontend->IsStorageEnabled(MANAGED)); |
575 // Now run the extension. | 575 // Now run the extension. |
576 ASSERT_TRUE(RunExtensionTest("settings/managed_storage_disabled")) | 576 ASSERT_TRUE(RunExtensionTest("settings/managed_storage_disabled")) |
577 << message_; | 577 << message_; |
578 } | 578 } |
579 | 579 |
580 } // namespace extensions | 580 } // namespace extensions |
OLD | NEW |