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 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/string16.h" | 10 #include "base/string16.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
13 | 12 |
14 namespace extensions { | 13 namespace extensions { |
15 // This class provides a simple way to create providers with specific | 14 // This class provides a simple way to create providers with specific |
16 // restrictions and a known error message, for use in testing. | 15 // restrictions and a known error message, for use in testing. |
17 class TestManagementPolicyProvider : public ManagementPolicy::Provider { | 16 class TestManagementPolicyProvider : public ManagementPolicy::Provider { |
(...skipping 27 matching lines...) Expand all Loading... |
45 | 44 |
46 private: | 45 private: |
47 bool may_load_; | 46 bool may_load_; |
48 bool may_modify_status_; | 47 bool may_modify_status_; |
49 bool must_remain_enabled_; | 48 bool must_remain_enabled_; |
50 | 49 |
51 string16 error_message_; | 50 string16 error_message_; |
52 }; | 51 }; |
53 } // namespace | 52 } // namespace |
54 #endif // CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ | 53 #endif // CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ |
OLD | NEW |