diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 21:06:25 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 21:06:25 +0000 |
commit | e0d481585dfab19c0b01b7518080164fa001d54c (patch) | |
tree | ac4b3d806f6917093c8d1f6319d25381934d7211 /chrome/browser/tab_contents/web_contents_unittest.cc | |
parent | a4c1eb2d00a9c66b4fc809916081cc727c998414 (diff) | |
download | chromium_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/browser/tab_contents/web_contents_unittest.cc')
-rw-r--r-- | chrome/browser/tab_contents/web_contents_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/tab_contents/web_contents_unittest.cc b/chrome/browser/tab_contents/web_contents_unittest.cc index b5a8048..987eb9f 100644 --- a/chrome/browser/tab_contents/web_contents_unittest.cc +++ b/chrome/browser/tab_contents/web_contents_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -14,6 +14,7 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/pref_service.h" #include "chrome/common/render_messages.h" +#include "chrome/common/url_constants.h" #include "chrome/test/testing_profile.h" #include "ipc/ipc_channel.h" #include "testing/gtest/include/gtest/gtest.h" @@ -206,7 +207,7 @@ class TabContentsTest : public RenderViewHostTestHarness { // Test to make sure that title updates get stripped of whitespace. TEST_F(TabContentsTest, UpdateTitle) { ViewHostMsg_FrameNavigate_Params params; - InitNavigateParams(¶ms, 0, GURL("about:blank")); + InitNavigateParams(¶ms, 0, GURL(chrome::kAboutBlankURL)); NavigationController::LoadCommittedDetails details; controller().RendererDidNavigate(params, &details); @@ -555,7 +556,7 @@ TEST_F(TabContentsTest, NavigationEntryContentStateNewWindow) { // When opening a new window, it is navigated to about:blank internally. // Currently, this results in two DidNavigate events. - const GURL url("about:blank"); + const GURL url(chrome::kAboutBlankURL); ViewHostMsg_FrameNavigate_Params params1; InitNavigateParams(¶ms1, 1, url); contents()->TestDidNavigate(orig_rvh, params1); |