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