diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-06 21:37:29 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-06 21:37:29 +0000 |
commit | 089e8c33e04e4e209226a379a308afd0631f63c2 (patch) | |
tree | 3791440ca41d407f244f9d792b6ac8116f3d65b4 | |
parent | ddbb35a9de21f600658cb0addf08f08c5b279e1d (diff) | |
download | chromium_src-089e8c33e04e4e209226a379a308afd0631f63c2.zip chromium_src-089e8c33e04e4e209226a379a308afd0631f63c2.tar.gz chromium_src-089e8c33e04e4e209226a379a308afd0631f63c2.tar.bz2 |
Small cleanup for previous CL in AppApiTest.AppProcessRedirectBack.
BUG=61757
TEST=n/a
Review URL: http://codereview.chromium.org/6076007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70652 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/extensions/app_process_apitest.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chrome/browser/extensions/app_process_apitest.cc b/chrome/browser/extensions/app_process_apitest.cc index 8d5da75..c812b1a 100644 --- a/chrome/browser/extensions/app_process_apitest.cc +++ b/chrome/browser/extensions/app_process_apitest.cc @@ -168,20 +168,16 @@ IN_PROC_BROWSER_TEST_F(AppApiTest, AppProcessRedirectBack) { browser()->NewTab(); ui_test_utils::NavigateToURL(browser(), base_url.Resolve("path1/empty.html")); browser()->NewTab(); - ui_test_utils::NavigateToURL(browser(), - base_url.Resolve("path1/redirect.html")); - // Wait until the second tab finishes its redirect train (2 hops). - NavigationController& controller = - browser()->GetSelectedTabContents()->controller(); - while (controller.GetActiveEntry()->url().path() != - "/files/extensions/api_test/app_process/path1/empty.html") { - ui_test_utils::WaitForNavigation(&controller); - } + ui_test_utils::NavigateToURLBlockUntilNavigationsComplete( + browser(), base_url.Resolve("path1/redirect.html"), 2); // 3 tabs, including the initial about:blank. The last 2 should be the same // process. ASSERT_EQ(3, browser()->tab_count()); + EXPECT_EQ("/files/extensions/api_test/app_process/path1/empty.html", + browser()->GetTabContentsAt(2)->controller(). + GetLastCommittedEntry()->url().path()); RenderViewHost* host = browser()->GetTabContentsAt(1)->render_view_host(); EXPECT_EQ(host->process(), browser()->GetTabContentsAt(2)->render_view_host()->process()); |