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

Side by Side Diff: chrome/test/base/ui_test_utils.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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/test/base/ui_test_utils.h" 5 #include "chrome/test/base/ui_test_utils.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #endif 9 #endif
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } // namespace 180 } // namespace
181 181
182 bool GetCurrentTabTitle(const Browser* browser, string16* title) { 182 bool GetCurrentTabTitle(const Browser* browser, string16* title) {
183 WebContents* web_contents = 183 WebContents* web_contents =
184 browser->tab_strip_model()->GetActiveWebContents(); 184 browser->tab_strip_model()->GetActiveWebContents();
185 if (!web_contents) 185 if (!web_contents)
186 return false; 186 return false;
187 NavigationEntry* last_entry = web_contents->GetController().GetActiveEntry(); 187 NavigationEntry* last_entry = web_contents->GetController().GetActiveEntry();
188 if (!last_entry) 188 if (!last_entry)
189 return false; 189 return false;
190 title->assign(last_entry->GetTitleForDisplay("")); 190 title->assign(last_entry->GetTitleForDisplay(std::string()));
191 return true; 191 return true;
192 } 192 }
193 193
194 void WaitForNavigations(NavigationController* controller, 194 void WaitForNavigations(NavigationController* controller,
195 int number_of_navigations) { 195 int number_of_navigations) {
196 content::TestNavigationObserver observer( 196 content::TestNavigationObserver observer(
197 content::Source<NavigationController>(controller), 197 content::Source<NavigationController>(controller),
198 number_of_navigations); 198 number_of_navigations);
199 base::RunLoop run_loop; 199 base::RunLoop run_loop;
200 observer.WaitForObservation( 200 observer.WaitForObservation(
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 void HistoryEnumerator::HistoryQueryComplete( 688 void HistoryEnumerator::HistoryQueryComplete(
689 const base::Closure& quit_task, 689 const base::Closure& quit_task,
690 HistoryService::Handle request_handle, 690 HistoryService::Handle request_handle,
691 history::QueryResults* results) { 691 history::QueryResults* results) {
692 for (size_t i = 0; i < results->size(); ++i) 692 for (size_t i = 0; i < results->size(); ++i)
693 urls_.push_back((*results)[i].url()); 693 urls_.push_back((*results)[i].url());
694 quit_task.Run(); 694 quit_task.Run();
695 } 695 }
696 696
697 } // namespace ui_test_utils 697 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/service/service_process_prefs_unittest.cc ('k') | chrome/test/chromedriver/capabilities_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698