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

Side by Side Diff: components/policy/core/common/configuration_policy_provider_test.h

Issue 102493002: Use schemas bundled in extensions to convert policies loaded on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
OLDNEW
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 #ifndef COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_TEST_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_TEST_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_TEST_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 30 matching lines...) Expand all
41 class PolicyTestBase : public testing::Test { 41 class PolicyTestBase : public testing::Test {
42 public: 42 public:
43 PolicyTestBase(); 43 PolicyTestBase();
44 virtual ~PolicyTestBase(); 44 virtual ~PolicyTestBase();
45 45
46 // testing::Test: 46 // testing::Test:
47 virtual void SetUp() OVERRIDE; 47 virtual void SetUp() OVERRIDE;
48 virtual void TearDown() OVERRIDE; 48 virtual void TearDown() OVERRIDE;
49 49
50 protected: 50 protected:
51 Schema chrome_schema_; 51 bool RegisterSchema(const PolicyNamespace& ns,
52 const std::string& schema);
53
52 SchemaRegistry schema_registry_; 54 SchemaRegistry schema_registry_;
53 55
54 // Create an actual IO loop (needed by FilePathWatcher). 56 // Create an actual IO loop (needed by FilePathWatcher).
55 base::MessageLoopForIO loop_; 57 base::MessageLoopForIO loop_;
56 58
57 private: 59 private:
58 DISALLOW_COPY_AND_ASSIGN(PolicyTestBase); 60 DISALLOW_COPY_AND_ASSIGN(PolicyTestBase);
59 }; 61 };
60 62
61 // An interface for creating a test policy provider and creating a policy 63 // An interface for creating a test policy provider and creating a policy
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 Configuration3rdPartyPolicyProviderTest(); 145 Configuration3rdPartyPolicyProviderTest();
144 virtual ~Configuration3rdPartyPolicyProviderTest(); 146 virtual ~Configuration3rdPartyPolicyProviderTest();
145 147
146 private: 148 private:
147 DISALLOW_COPY_AND_ASSIGN(Configuration3rdPartyPolicyProviderTest); 149 DISALLOW_COPY_AND_ASSIGN(Configuration3rdPartyPolicyProviderTest);
148 }; 150 };
149 151
150 } // namespace policy 152 } // namespace policy
151 153
152 #endif // COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_TEST_H_ 154 #endif // COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698