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 COMPONENTS_CONTENT_SETTINGS_CORE_TEST_CONTENT_SETTINGS_TEST_UTILS_H_ | 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_TEST_CONTENT_SETTINGS_TEST_UTILS_H_ |
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_TEST_CONTENT_SETTINGS_TEST_UTILS_H_ | 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_TEST_CONTENT_SETTINGS_TEST_UTILS_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 #include "components/content_settings/core/browser/content_settings_utils.h" | 11 #include "components/content_settings/core/browser/content_settings_utils.h" |
11 | 12 |
12 namespace content_settings { | 13 namespace content_settings { |
13 | 14 |
14 class TestUtils { | 15 class TestUtils { |
15 public: | 16 public: |
16 // The following two functions return the content setting (represented as | 17 // The following two functions return the content setting (represented as |
17 // Value or directly the ContentSetting enum) from |provider| for the | 18 // Value or directly the ContentSetting enum) from |provider| for the |
(...skipping 26 matching lines...) Expand all Loading... |
44 ContentSettingsPattern* primary_pattern, | 45 ContentSettingsPattern* primary_pattern, |
45 ContentSettingsPattern* secondary_pattern); | 46 ContentSettingsPattern* secondary_pattern); |
46 | 47 |
47 private: | 48 private: |
48 DISALLOW_IMPLICIT_CONSTRUCTORS(TestUtils); | 49 DISALLOW_IMPLICIT_CONSTRUCTORS(TestUtils); |
49 }; | 50 }; |
50 | 51 |
51 } // namespace content_settings | 52 } // namespace content_settings |
52 | 53 |
53 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_TEST_CONTENT_SETTINGS_TEST_UTILS_H_ | 54 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_TEST_CONTENT_SETTINGS_TEST_UTILS_H_ |
OLD | NEW |