X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Ftest%2Fbase%2Fui_test_utils.cc;h=978835bd9958cd22f6f1da1cf3998e8e50da360d;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=dafacf130afa0225cbf1a31e5c6abc95a9725057;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/test/base/ui_test_utils.cc b/src/chrome/test/base/ui_test_utils.cc index dafacf1..978835b 100644 --- a/src/chrome/test/base/ui_test_utils.cc +++ b/src/chrome/test/base/ui_test_utils.cc @@ -28,12 +28,9 @@ #include "chrome/browser/bookmarks/bookmark_model_factory.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_notification_types.h" -#include "chrome/browser/devtools/devtools_window.h" #include "chrome/browser/extensions/extension_action.h" #include "chrome/browser/history/history_service_factory.h" #include "chrome/browser/profiles/profile.h" -#include "chrome/browser/search_engines/template_url_service.h" -#include "chrome/browser/search_engines/template_url_service_test_util.h" #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" #include "chrome/browser/ui/browser.h" @@ -46,13 +43,14 @@ #include "chrome/browser/ui/find_bar/find_notification_details.h" #include "chrome/browser/ui/find_bar/find_tab_helper.h" #include "chrome/browser/ui/host_desktop.h" -#include "chrome/browser/ui/omnibox/location_bar.h" +#include "chrome/browser/ui/location_bar/location_bar.h" #include "chrome/browser/ui/omnibox/omnibox_view.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/pref_names.h" #include "chrome/test/base/find_in_page_observer.h" #include "components/bookmarks/browser/bookmark_model.h" +#include "components/search_engines/template_url_service.h" #include "content/public/browser/dom_operation_notification_details.h" #include "content/public/browser/download_item.h" #include "content/public/browser/download_manager.h" @@ -269,13 +267,6 @@ void NavigateToURLBlockUntilNavigationsComplete(Browser* browser, BROWSER_TEST_WAIT_FOR_NAVIGATION); } -void WaitUntilDevToolsWindowLoaded(DevToolsWindow* window) { - scoped_refptr runner = - new content::MessageLoopRunner; - window->SetLoadCompletedCallback(runner->QuitClosure()); - runner->Run(); -} - base::FilePath GetTestFilePath(const base::FilePath& dir, const base::FilePath& file) { base::FilePath path; @@ -571,12 +562,12 @@ HistoryEnumerator::HistoryEnumerator(Profile* profile) { HistoryService* hs = HistoryServiceFactory::GetForProfile( profile, Profile::EXPLICIT_ACCESS); - hs->QueryHistory( - base::string16(), - history::QueryOptions(), - &consumer_, - base::Bind(&HistoryEnumerator::HistoryQueryComplete, - base::Unretained(this), message_loop_runner->QuitClosure())); + hs->QueryHistory(base::string16(), + history::QueryOptions(), + base::Bind(&HistoryEnumerator::HistoryQueryComplete, + base::Unretained(this), + message_loop_runner->QuitClosure()), + &tracker_); message_loop_runner->Run(); } @@ -584,7 +575,6 @@ HistoryEnumerator::~HistoryEnumerator() {} void HistoryEnumerator::HistoryQueryComplete( const base::Closure& quit_task, - HistoryService::Handle request_handle, history::QueryResults* results) { for (size_t i = 0; i < results->size(); ++i) urls_.push_back((*results)[i].url());