OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SERVICE_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 protected: | 49 protected: |
50 void InitializeExtensionServiceHelper(bool autoupdate_enabled); | 50 void InitializeExtensionServiceHelper(bool autoupdate_enabled); |
51 | 51 |
52 MessageLoop loop_; | 52 MessageLoop loop_; |
53 base::ShadowingAtExitManager at_exit_manager_; | 53 base::ShadowingAtExitManager at_exit_manager_; |
54 ScopedTempDir temp_dir_; | 54 ScopedTempDir temp_dir_; |
55 scoped_ptr<TestingProfile> profile_; | 55 scoped_ptr<TestingProfile> profile_; |
56 FilePath extensions_install_dir_; | 56 FilePath extensions_install_dir_; |
57 FilePath data_dir_; | 57 FilePath data_dir_; |
58 // Managed by ExtensionSystemFactory. | 58 // Owned by |profile_|. |
59 ExtensionService* service_; | 59 ExtensionService* service_; |
60 size_t expected_extensions_count_; | 60 size_t expected_extensions_count_; |
61 content::TestBrowserThread ui_thread_; | 61 content::TestBrowserThread ui_thread_; |
62 content::TestBrowserThread db_thread_; | 62 content::TestBrowserThread db_thread_; |
63 content::TestBrowserThread webkit_thread_; | 63 content::TestBrowserThread webkit_thread_; |
64 content::TestBrowserThread file_thread_; | 64 content::TestBrowserThread file_thread_; |
65 content::TestBrowserThread file_user_blocking_thread_; | 65 content::TestBrowserThread file_user_blocking_thread_; |
66 content::TestBrowserThread io_thread_; | 66 content::TestBrowserThread io_thread_; |
67 }; | 67 }; |
68 | 68 |
69 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ | 69 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ |
OLD | NEW |