Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: chrome/browser/ui/cocoa/cocoa_profile_test.h

Issue 14307023: chrome: Use base::MessageLoop. (Part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_PROFILE_TEST_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILE_TEST_H_
6 #define CHROME_BROWSER_UI_COCOA_PROFILE_TEST_H_ 6 #define CHROME_BROWSER_UI_COCOA_PROFILE_TEST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Closes the window for this browser. This will automatically be called as 50 // Closes the window for this browser. This will automatically be called as
51 // part of TearDown() if it's not been done already. 51 // part of TearDown() if it's not been done already.
52 void CloseBrowserWindow(); 52 void CloseBrowserWindow();
53 53
54 protected: 54 protected:
55 // Overridden by test subclasses to create their own browser, e.g. with a 55 // Overridden by test subclasses to create their own browser, e.g. with a
56 // test window. 56 // test window.
57 virtual Browser* CreateBrowser(); 57 virtual Browser* CreateBrowser();
58 58
59 private: 59 private:
60 MessageLoopForUI message_loop_; 60 base::MessageLoopForUI message_loop_;
61 content::TestBrowserThread ui_thread_; 61 content::TestBrowserThread ui_thread_;
62 62
63 TestingProfileManager profile_manager_; 63 TestingProfileManager profile_manager_;
64 TestingProfile* profile_; // Weak; owned by profile_manager_. 64 TestingProfile* profile_; // Weak; owned by profile_manager_.
65 scoped_ptr<Browser> browser_; 65 scoped_ptr<Browser> browser_;
66 66
67 scoped_ptr<content::TestBrowserThread> file_user_blocking_thread_; 67 scoped_ptr<content::TestBrowserThread> file_user_blocking_thread_;
68 scoped_ptr<content::TestBrowserThread> file_thread_; 68 scoped_ptr<content::TestBrowserThread> file_thread_;
69 scoped_ptr<content::TestBrowserThread> io_thread_; 69 scoped_ptr<content::TestBrowserThread> io_thread_;
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_UI_COCOA_PROFILE_TEST_H_ 72 #endif // CHROME_BROWSER_UI_COCOA_PROFILE_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698