diff options
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/automated_ui_tests/automated_ui_tests.cc | 5 | ||||
-rw-r--r-- | chrome/test/in_process_browser_test.cc | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/chrome/test/automated_ui_tests/automated_ui_tests.cc b/chrome/test/automated_ui_tests/automated_ui_tests.cc index 396b924..02afb67 100644 --- a/chrome/test/automated_ui_tests/automated_ui_tests.cc +++ b/chrome/test/automated_ui_tests/automated_ui_tests.cc @@ -22,6 +22,7 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/env_vars.h" #include "chrome/common/libxml_utils.h" +#include "chrome/common/url_constants.h" #include "chrome/test/automated_ui_tests/automated_ui_tests.h" #include "chrome/test/automation/browser_proxy.h" #include "chrome/test/automation/tab_proxy.h" @@ -346,7 +347,7 @@ bool AutomatedUITest::DoAction(const std::string& action) { } else if (LowerCaseEqualsASCII(action, "javascriptconsole")) { did_complete_action = JavaScriptConsole(); } else if (LowerCaseEqualsASCII(action, "navigate")) { - std::string url = "about:blank"; + std::string url = chrome::kAboutBlankURL; if (init_reader_.NodeAttribute("url", &url)) { xml_writer_.AddAttribute("url", url); } @@ -624,7 +625,7 @@ bool AutomatedUITest::FuzzyTestDialog(int num_actions) { bool AutomatedUITest::ForceCrash() { scoped_refptr<TabProxy> tab(GetActiveTab()); - GURL test_url("about:crash"); + GURL test_url(chrome::kAboutCrashURL); bool did_timeout; tab->NavigateToURLWithTimeout(test_url, 1, kDebuggingTimeoutMsec, &did_timeout); diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc index d4c26ee..74dfe5c 100644 --- a/chrome/test/in_process_browser_test.cc +++ b/chrome/test/in_process_browser_test.cc @@ -28,6 +28,7 @@ #include "chrome/common/main_function_params.h" #include "chrome/common/notification_registrar.h" #include "chrome/common/notification_type.h" +#include "chrome/common/url_constants.h" #include "chrome/test/testing_browser_process.h" #include "chrome/test/ui_test_utils.h" #include "sandbox/src/dep.h" @@ -172,9 +173,8 @@ HTTPTestServer* InProcessBrowserTest::StartHTTPServer() { Browser* InProcessBrowserTest::CreateBrowser(Profile* profile) { Browser* browser = Browser::Create(profile); - browser->AddTabWithURL( - GURL("about:blank"), GURL(), PageTransition::START_PAGE, true, -1, false, - NULL); + browser->AddTabWithURL(GURL(chrome::kAboutBlankURL), GURL(), + PageTransition::START_PAGE, true, -1, false, NULL); // Wait for the page to finish loading. ui_test_utils::WaitForNavigation( |