| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_SERVICE_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_UNITTEST_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_UNITTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_UNITTEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 static void SetUpTestCase(); | 31 static void SetUpTestCase(); |
| 32 | 32 |
| 33 virtual void SetUp(); | 33 virtual void SetUp(); |
| 34 | 34 |
| 35 void set_extensions_enabled(bool enabled) { | 35 void set_extensions_enabled(bool enabled) { |
| 36 service_->set_extensions_enabled(enabled); | 36 service_->set_extensions_enabled(enabled); |
| 37 } | 37 } |
| 38 | 38 |
| 39 protected: | 39 protected: |
| 40 ScopedTempDir temp_dir_; | 40 ScopedTempDir temp_dir_; |
| 41 scoped_ptr<PrefService> prefs_; | |
| 42 scoped_ptr<Profile> profile_; | 41 scoped_ptr<Profile> profile_; |
| 43 FilePath extensions_install_dir_; | 42 FilePath extensions_install_dir_; |
| 44 scoped_refptr<ExtensionsService> service_; | 43 scoped_refptr<ExtensionsService> service_; |
| 45 size_t total_successes_; | 44 size_t total_successes_; |
| 46 MessageLoop loop_; | 45 MessageLoop loop_; |
| 47 ChromeThread ui_thread_; | 46 ChromeThread ui_thread_; |
| 48 ChromeThread db_thread_; | 47 ChromeThread db_thread_; |
| 49 ChromeThread webkit_thread_; | 48 ChromeThread webkit_thread_; |
| 50 ChromeThread file_thread_; | 49 ChromeThread file_thread_; |
| 51 ChromeThread io_thread_; | 50 ChromeThread io_thread_; |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_UNITTEST_H_ | 53 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_UNITTEST_H_ |
| OLD | NEW |