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

Side by Side Diff: chrome/browser/autocomplete/search_provider_unittest.cc

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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "chrome/browser/autocomplete/search_provider.h" 5 #include "chrome/browser/autocomplete/search_provider.h"
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void FinishDefaultSuggestQuery(); 138 void FinishDefaultSuggestQuery();
139 139
140 // See description above class for details of these fields. 140 // See description above class for details of these fields.
141 TemplateURL* default_t_url_; 141 TemplateURL* default_t_url_;
142 const string16 term1_; 142 const string16 term1_;
143 GURL term1_url_; 143 GURL term1_url_;
144 TemplateURL* keyword_t_url_; 144 TemplateURL* keyword_t_url_;
145 const string16 keyword_term_; 145 const string16 keyword_term_;
146 GURL keyword_url_; 146 GURL keyword_url_;
147 147
148 MessageLoopForUI message_loop_; 148 base::MessageLoopForUI message_loop_;
149 content::TestBrowserThread ui_thread_; 149 content::TestBrowserThread ui_thread_;
150 content::TestBrowserThread io_thread_; 150 content::TestBrowserThread io_thread_;
151 151
152 // URLFetcherFactory implementation registered. 152 // URLFetcherFactory implementation registered.
153 net::TestURLFetcherFactory test_factory_; 153 net::TestURLFetcherFactory test_factory_;
154 154
155 // Profile we use. 155 // Profile we use.
156 TestingProfile profile_; 156 TestingProfile profile_;
157 157
158 // The provider. 158 // The provider.
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
2161 } else { 2161 } else {
2162 ASSERT_NE(sug_end, sug_it) << "Failed to find " << suggestion; 2162 ASSERT_NE(sug_end, sug_it) << "Failed to find " << suggestion;
2163 EXPECT_EQ(ASCIIToUTF16(suggestion), sug_it->suggestion()); 2163 EXPECT_EQ(ASCIIToUTF16(suggestion), sug_it->suggestion());
2164 ++sug_it; 2164 ++sug_it;
2165 } 2165 }
2166 } 2166 }
2167 EXPECT_EQ(sug_end, sug_it); 2167 EXPECT_EQ(sug_end, sug_it);
2168 EXPECT_EQ(nav_end, nav_it); 2168 EXPECT_EQ(nav_end, nav_it);
2169 } 2169 }
2170 } 2170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698