summaryrefslogtreecommitdiffstats
path: root/chrome/test/automated_ui_tests
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 21:06:25 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 21:06:25 +0000
commite0d481585dfab19c0b01b7518080164fa001d54c (patch)
treeac4b3d806f6917093c8d1f6319d25381934d7211 /chrome/test/automated_ui_tests
parenta4c1eb2d00a9c66b4fc809916081cc727c998414 (diff)
downloadchromium_src-e0d481585dfab19c0b01b7518080164fa001d54c.zip
chromium_src-e0d481585dfab19c0b01b7518080164fa001d54c.tar.gz
chromium_src-e0d481585dfab19c0b01b7518080164fa001d54c.tar.bz2
Replace a bunch of hardcoded URLs with constants from url_constants.h
TEST=none BUG=none Review URL: http://codereview.chromium.org/193092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26263 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automated_ui_tests')
-rw-r--r--chrome/test/automated_ui_tests/automated_ui_tests.cc5
1 files changed, 3 insertions, 2 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);