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

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

Issue 12212048: Linux/ChromeOS Chromium style checker cleanup, chrome/browser edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 #include "chrome/browser/search_engines/template_url_service_test_util.h" 5 #include "chrome/browser/search_engines/template_url_service_test_util.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 string16 GetAndClearSearchTerm() { 97 string16 GetAndClearSearchTerm() {
98 string16 search_term; 98 string16 search_term;
99 search_term.swap(search_term_); 99 search_term.swap(search_term_);
100 return search_term; 100 return search_term;
101 } 101 }
102 102
103 protected: 103 protected:
104 virtual void SetKeywordSearchTermsForURL(const TemplateURL* t_url, 104 virtual void SetKeywordSearchTermsForURL(const TemplateURL* t_url,
105 const GURL& url, 105 const GURL& url,
106 const string16& term) { 106 const string16& term) OVERRIDE {
107 search_term_ = term; 107 search_term_ = term;
108 } 108 }
109 109
110 private: 110 private:
111 string16 search_term_; 111 string16 search_term_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(TestingTemplateURLService); 113 DISALLOW_COPY_AND_ASSIGN(TestingTemplateURLService);
114 }; 114 };
115 115
116 void TemplateURLServiceTestingProfile::SetUp() { 116 void TemplateURLServiceTestingProfile::SetUp() {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 return profile_.get(); 328 return profile_.get();
329 } 329 }
330 330
331 void TemplateURLServiceTestUtil::StartIOThread() { 331 void TemplateURLServiceTestUtil::StartIOThread() {
332 profile_->StartIOThread(); 332 profile_->StartIOThread();
333 } 333 }
334 334
335 void TemplateURLServiceTestUtil::PumpLoop() { 335 void TemplateURLServiceTestUtil::PumpLoop() {
336 message_loop_.RunUntilIdle(); 336 message_loop_.RunUntilIdle();
337 } 337 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698