Skip to content
Snippets Groups Projects
Commit e876f3c3 authored by tyoshino@google.com's avatar tyoshino@google.com
Browse files

Use URL constants instead of writing string literals in test using history page address.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/200142

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27172 0039d316-1c4b-4281-b951-d872f2087c98
parent cd88b0c7
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/in_process_browser_test.h"
#include "chrome/test/ui_test_utils.h"
#include "net/base/mock_host_resolver.h"
......@@ -363,7 +364,7 @@ IN_PROC_BROWSER_TEST_F(AutocompleteEditViewTest, BackspaceInKeywordMode) {
}
IN_PROC_BROWSER_TEST_F(AutocompleteEditViewTest, Escape) {
ui_test_utils::NavigateToURL(browser(), GURL("chrome://history/"));
ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIHistoryURL));
browser()->FocusLocationBar();
AutocompleteEditView* edit_view = NULL;
......@@ -411,7 +412,7 @@ IN_PROC_BROWSER_TEST_F(AutocompleteEditViewTest, AltEnter) {
AutocompleteEditView* edit_view = NULL;
ASSERT_NO_FATAL_FAILURE(GetAutocompleteEditView(&edit_view));
edit_view->SetUserText(L"chrome://history/");
edit_view->SetUserText(ASCIIToWide(chrome::kChromeUIHistoryURL));
int tab_count = browser()->tab_count();
// alt-Enter opens a new tab.
ASSERT_NO_FATAL_FAILURE(SendKey(base::VKEY_RETURN, false, false, true));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment