| OLD | NEW |
| 1 // Copyright (c) 2011 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_UI_COCOA_BROWSER_TEST_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_TEST_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_TEST_HELPER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_TEST_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/test/base/testing_browser_process.h" | 10 #include "chrome/test/base/testing_browser_process.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Creates the browser window. To close this window call |CloseBrowserWindow|. | 36 // Creates the browser window. To close this window call |CloseBrowserWindow|. |
| 37 // Do NOT call close directly on the window. | 37 // Do NOT call close directly on the window. |
| 38 BrowserWindow* CreateBrowserWindow(); | 38 BrowserWindow* CreateBrowserWindow(); |
| 39 | 39 |
| 40 // Closes the window for this browser. This must only be called after | 40 // Closes the window for this browser. This must only be called after |
| 41 // CreateBrowserWindow(). | 41 // CreateBrowserWindow(). |
| 42 void CloseBrowserWindow(); | 42 void CloseBrowserWindow(); |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 ScopedTestingBrowserProcess browser_process_; | |
| 46 | |
| 47 scoped_ptr<TestingProfile> profile_; | 45 scoped_ptr<TestingProfile> profile_; |
| 48 scoped_ptr<Browser> browser_; | 46 scoped_ptr<Browser> browser_; |
| 49 MessageLoopForUI message_loop_; | 47 MessageLoopForUI message_loop_; |
| 50 BrowserThread ui_thread_; | 48 BrowserThread ui_thread_; |
| 51 scoped_ptr<BrowserThread> file_thread_; | 49 scoped_ptr<BrowserThread> file_thread_; |
| 52 scoped_ptr<BrowserThread> io_thread_; | 50 scoped_ptr<BrowserThread> io_thread_; |
| 53 }; | 51 }; |
| 54 | 52 |
| 55 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_TEST_HELPER_H_ | 53 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_TEST_HELPER_H_ |
| OLD | NEW |