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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_apitest.cc

Issue 78453005: Move PolicySchema and PolicySchemaRegistry to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested class on win Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
(...skipping 10 matching lines...) Expand all
21 #include "extensions/common/value_builder.h" 21 #include "extensions/common/value_builder.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_error_factory.h" 24 #include "sync/api/sync_error_factory.h"
25 #include "sync/api/sync_error_factory_mock.h" 25 #include "sync/api/sync_error_factory_mock.h"
26 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
27 27
28 #if defined(ENABLE_CONFIGURATION_POLICY) 28 #if defined(ENABLE_CONFIGURATION_POLICY)
29 #include "chrome/browser/policy/browser_policy_connector.h" 29 #include "chrome/browser/policy/browser_policy_connector.h"
30 #include "chrome/browser/policy/mock_configuration_policy_provider.h" 30 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
31 #include "chrome/browser/policy/schema_map.h"
32 #include "chrome/browser/policy/schema_registry.h"
33 #include "chrome/browser/policy/schema_registry_service.h" 31 #include "chrome/browser/policy/schema_registry_service.h"
34 #include "chrome/browser/policy/schema_registry_service_factory.h" 32 #include "chrome/browser/policy/schema_registry_service_factory.h"
35 #include "components/policy/core/common/policy_bundle.h" 33 #include "components/policy/core/common/policy_bundle.h"
36 #include "components/policy/core/common/policy_map.h" 34 #include "components/policy/core/common/policy_map.h"
37 #include "components/policy/core/common/policy_namespace.h" 35 #include "components/policy/core/common/policy_namespace.h"
38 #include "components/policy/core/common/schema.h" 36 #include "components/policy/core/common/schema.h"
37 #include "components/policy/core/common/schema_map.h"
38 #include "components/policy/core/common/schema_registry.h"
39 #endif 39 #endif
40 40
41 namespace extensions { 41 namespace extensions {
42 42
43 using settings_namespace::LOCAL; 43 using settings_namespace::LOCAL;
44 using settings_namespace::MANAGED; 44 using settings_namespace::MANAGED;
45 using settings_namespace::Namespace; 45 using settings_namespace::Namespace;
46 using settings_namespace::SYNC; 46 using settings_namespace::SYNC;
47 using settings_namespace::ToString; 47 using settings_namespace::ToString;
48 using testing::Mock; 48 using testing::Mock;
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 SettingsFrontend* frontend = 615 SettingsFrontend* frontend =
616 browser()->profile()->GetExtensionService()->settings_frontend(); 616 browser()->profile()->GetExtensionService()->settings_frontend();
617 frontend->DisableStorageForTesting(MANAGED); 617 frontend->DisableStorageForTesting(MANAGED);
618 EXPECT_FALSE(frontend->IsStorageEnabled(MANAGED)); 618 EXPECT_FALSE(frontend->IsStorageEnabled(MANAGED));
619 // Now run the extension. 619 // Now run the extension.
620 ASSERT_TRUE(RunExtensionTest("settings/managed_storage_disabled")) 620 ASSERT_TRUE(RunExtensionTest("settings/managed_storage_disabled"))
621 << message_; 621 << message_;
622 } 622 }
623 623
624 } // namespace extensions 624 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/storage/managed_value_store_cache.cc ('k') | chrome/browser/policy/async_policy_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698