summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_commands_unittest.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 01:29:20 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 01:29:20 +0000
commite5d549d8889c0533703211652564bc0a55ec9938 (patch)
tree1657b37fe9aab6dc719d2f4cc2298c42a8d92e62 /chrome/browser/browser_commands_unittest.cc
parent1f2f300c1767a21a17e1b9ce3acb4b75ae854600 (diff)
downloadchromium_src-e5d549d8889c0533703211652564bc0a55ec9938.zip
chromium_src-e5d549d8889c0533703211652564bc0a55ec9938.tar.gz
chromium_src-e5d549d8889c0533703211652564bc0a55ec9938.tar.bz2
Move the PageNavigator interface and GlobalRequestID struct to content\public and put them in the content namespace. Make PageNavigator use WebContents instead of TabContents. While I'm touching all the callers, I've removed the deprecated PageNavigator function and converted users to the new one.
BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/8991012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_commands_unittest.cc')
-rw-r--r--chrome/browser/browser_commands_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/browser_commands_unittest.cc b/chrome/browser/browser_commands_unittest.cc
index b5c4175..d04ae23 100644
--- a/chrome/browser/browser_commands_unittest.cc
+++ b/chrome/browser/browser_commands_unittest.cc
@@ -15,6 +15,9 @@
typedef BrowserWithTestWindowTest BrowserCommandsTest;
+using content::OpenURLParams;
+using content::Referrer;
+
// Tests IDC_SELECT_TAB_0, IDC_SELECT_NEXT_TAB, IDC_SELECT_PREVIOUS_TAB and
// IDC_SELECT_LAST_TAB.
TEST_F(BrowserCommandsTest, TabNavigationAccelerators) {
@@ -86,7 +89,8 @@ TEST_F(BrowserCommandsTest, BookmarkCurrentPage) {
// Navigate to a url.
GURL url1("http://foo/1");
AddTab(browser(), url1);
- browser()->OpenURL(url1, GURL(), CURRENT_TAB, content::PAGE_TRANSITION_TYPED);
+ browser()->OpenURL(OpenURLParams(
+ url1, Referrer(), CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
// TODO(beng): remove this once we can use TabContentses directly in testing
// instead of the TestTabContents which causes this command not to