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

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

Issue 3524012: Rename ChromeThread to BrowserThread Part 2: (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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
OLDNEW
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 #include "base/string_util.h" 5 #include "base/string_util.h"
6 #include "base/time.h" 6 #include "base/time.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/autocomplete/search_provider.h" 9 #include "chrome/browser/autocomplete/search_provider.h"
10 #include "chrome/browser/chrome_thread.h" 10 #include "chrome/browser/chrome_thread.h"
(...skipping 15 matching lines...) Expand all
26 // is added to history. 26 // is added to history.
27 // . test_factory_ is set as the URLFetcher::Factory. 27 // . test_factory_ is set as the URLFetcher::Factory.
28 class SearchProviderTest : public testing::Test, 28 class SearchProviderTest : public testing::Test,
29 public AutocompleteProvider::ACProviderListener { 29 public AutocompleteProvider::ACProviderListener {
30 public: 30 public:
31 SearchProviderTest() 31 SearchProviderTest()
32 : default_t_url_(NULL), 32 : default_t_url_(NULL),
33 term1_(UTF8ToUTF16("term1")), 33 term1_(UTF8ToUTF16("term1")),
34 keyword_t_url_(NULL), 34 keyword_t_url_(NULL),
35 keyword_term_(UTF8ToUTF16("keyword")), 35 keyword_term_(UTF8ToUTF16("keyword")),
36 io_thread_(ChromeThread::IO), 36 io_thread_(BrowserThread::IO),
37 quit_when_done_(false) { 37 quit_when_done_(false) {
38 io_thread_.Start(); 38 io_thread_.Start();
39 } 39 }
40 40
41 // See description above class for what this registers. 41 // See description above class for what this registers.
42 virtual void SetUp(); 42 virtual void SetUp();
43 43
44 virtual void TearDown(); 44 virtual void TearDown();
45 45
46 protected: 46 protected:
(...skipping 14 matching lines...) Expand all
61 61
62 // See description above class for details of these fields. 62 // See description above class for details of these fields.
63 TemplateURL* default_t_url_; 63 TemplateURL* default_t_url_;
64 const string16 term1_; 64 const string16 term1_;
65 GURL term1_url_; 65 GURL term1_url_;
66 TemplateURL* keyword_t_url_; 66 TemplateURL* keyword_t_url_;
67 const string16 keyword_term_; 67 const string16 keyword_term_;
68 GURL keyword_url_; 68 GURL keyword_url_;
69 69
70 MessageLoopForUI message_loop_; 70 MessageLoopForUI message_loop_;
71 ChromeThread io_thread_; 71 BrowserThread io_thread_;
72 72
73 // URLFetcher::Factory implementation registered. 73 // URLFetcher::Factory implementation registered.
74 TestURLFetcherFactory test_factory_; 74 TestURLFetcherFactory test_factory_;
75 75
76 // Profile we use. 76 // Profile we use.
77 TestingProfile profile_; 77 TestingProfile profile_;
78 78
79 // The provider. 79 // The provider.
80 scoped_refptr<SearchProvider> provider_; 80 scoped_refptr<SearchProvider> provider_;
81 81
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 for (size_t i = 0; i < arraysize(inputs); ++i) { 291 for (size_t i = 0; i < arraysize(inputs); ++i) {
292 QueryForInput(ASCIIToUTF16(inputs[i])); 292 QueryForInput(ASCIIToUTF16(inputs[i]));
293 // Make sure the default providers suggest service was not queried. 293 // Make sure the default providers suggest service was not queried.
294 ASSERT_TRUE(test_factory_.GetFetcherByID( 294 ASSERT_TRUE(test_factory_.GetFetcherByID(
295 SearchProvider::kDefaultProviderURLFetcherID) == NULL); 295 SearchProvider::kDefaultProviderURLFetcherID) == NULL);
296 // Run till the history results complete. 296 // Run till the history results complete.
297 RunTillProviderDone(); 297 RunTillProviderDone();
298 } 298 }
299 } 299 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider_unittest.cc ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698