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_EXTENSION_PREFS_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_UNITTEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_UNITTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_UNITTEST_H_ |
7 | 7 |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "chrome/browser/extensions/test_extension_prefs.h" | 9 #include "chrome/browser/extensions/test_extension_prefs.h" |
10 #include "chrome/common/extensions/extension_unittest.h" | 10 #include "chrome/common/extensions/extension_unittest.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 // This function is called to Register preference default values. | 38 // This function is called to Register preference default values. |
39 virtual void RegisterPreferences(PrefRegistrySyncable* registry); | 39 virtual void RegisterPreferences(PrefRegistrySyncable* registry); |
40 | 40 |
41 virtual void SetUp() OVERRIDE; | 41 virtual void SetUp() OVERRIDE; |
42 | 42 |
43 virtual void TearDown() OVERRIDE; | 43 virtual void TearDown() OVERRIDE; |
44 | 44 |
45 protected: | 45 protected: |
46 ExtensionPrefs* prefs() { return prefs_.prefs(); } | 46 ExtensionPrefs* prefs() { return prefs_.prefs(); } |
47 | 47 |
48 MessageLoop message_loop_; | 48 base::MessageLoop message_loop_; |
49 content::TestBrowserThread ui_thread_; | 49 content::TestBrowserThread ui_thread_; |
50 | 50 |
51 TestExtensionPrefs prefs_; | 51 TestExtensionPrefs prefs_; |
52 | 52 |
53 private: | 53 private: |
54 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefsTest); | 54 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefsTest); |
55 }; | 55 }; |
56 | 56 |
57 class ExtensionPrefsPrepopulatedTest : public ExtensionPrefsTest { | 57 class ExtensionPrefsPrepopulatedTest : public ExtensionPrefsTest { |
58 public: | 58 public: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 scoped_refptr<Extension> ext1_scoped_; | 95 scoped_refptr<Extension> ext1_scoped_; |
96 scoped_refptr<Extension> ext2_scoped_; | 96 scoped_refptr<Extension> ext2_scoped_; |
97 scoped_refptr<Extension> ext3_scoped_; | 97 scoped_refptr<Extension> ext3_scoped_; |
98 scoped_refptr<Extension> ext4_scoped_; | 98 scoped_refptr<Extension> ext4_scoped_; |
99 }; | 99 }; |
100 | 100 |
101 } // namespace extensions | 101 } // namespace extensions |
102 | 102 |
103 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_UNITTEST_H_ | 103 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_UNITTEST_H_ |
OLD | NEW |