Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2670)

Unified Diff: chrome/browser/apps/app_browsertest.cc

Issue 2209303002: binding: Moves the check for the first access to the initial document into BindingSecurity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/apps/app_browsertest.cc
diff --git a/chrome/browser/apps/app_browsertest.cc b/chrome/browser/apps/app_browsertest.cc
index 7300ae4ace0c8a077c36291af02d16b7045ecc1f..f513a78c69cd9e6dd53a369702e8bda787b8b4e5 100644
--- a/chrome/browser/apps/app_browsertest.cc
+++ b/chrome/browser/apps/app_browsertest.cc
@@ -41,6 +41,7 @@
#include "content/public/browser/host_zoom_map.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_widget_host_view.h"
+#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/app_window/app_window.h"
#include "extensions/browser/app_window/app_window_registry.h"
@@ -451,8 +452,10 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
message_;
observer.Wait();
ASSERT_EQ(kExpectedNumberOfTabs, observer.tabs().size());
+ content::WaitForLoadStop(observer.tabs()[kExpectedNumberOfTabs - 1]);
EXPECT_EQ(GURL(kChromiumURL),
observer.tabs()[kExpectedNumberOfTabs - 1]->GetURL());
+ content::WaitForLoadStop(observer.tabs()[kExpectedNumberOfTabs - 2]);
EXPECT_EQ(GURL(kChromiumURL),
observer.tabs()[kExpectedNumberOfTabs - 2]->GetURL());
}

Powered by Google App Engine
This is Rietveld 408576698