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

Side by Side Diff: chrome/browser/search_engines/template_url_service_test_util.h

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 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) 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_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Returns the TestingProfile. 102 // Returns the TestingProfile.
103 TestingProfile* profile() const; 103 TestingProfile* profile() const;
104 104
105 // Starts an I/O thread. 105 // Starts an I/O thread.
106 void StartIOThread(); 106 void StartIOThread();
107 107
108 // Runs all pending tasks on the UI loop. 108 // Runs all pending tasks on the UI loop.
109 void PumpLoop(); 109 void PumpLoop();
110 110
111 private: 111 private:
112 MessageLoopForUI message_loop_; 112 base::MessageLoopForUI message_loop_;
113 // Needed to make the DeleteOnUIThread trait of WebDataService work 113 // Needed to make the DeleteOnUIThread trait of WebDataService work
114 // properly. 114 // properly.
115 content::TestBrowserThread ui_thread_; 115 content::TestBrowserThread ui_thread_;
116 content::TestBrowserThread db_thread_; 116 content::TestBrowserThread db_thread_;
117 content::TestBrowserThread io_thread_; 117 content::TestBrowserThread io_thread_;
118 scoped_ptr<TestingProfile> profile_; 118 scoped_ptr<TestingProfile> profile_;
119 int changed_count_; 119 int changed_count_;
120 base::ScopedTempDir temp_dir_; 120 base::ScopedTempDir temp_dir_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(TemplateURLServiceTestUtil); 122 DISALLOW_COPY_AND_ASSIGN(TemplateURLServiceTestUtil);
123 }; 123 };
124 124
125 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_ 125 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698