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

Unified Diff: content/shell/renderer/test_runner/TestRunner.h

Issue 200663002: Add 'waitUntilExternalURLLoad' method to TestRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: content/shell/renderer/test_runner/TestRunner.h
diff --git a/content/shell/renderer/test_runner/TestRunner.h b/content/shell/renderer/test_runner/TestRunner.h
index 2bb6d9dbfd16ae47dede197915f2ec6d935d3812..d9928889370b0db89912597d1ab8c2d0882d2741 100644
--- a/content/shell/renderer/test_runner/TestRunner.h
+++ b/content/shell/renderer/test_runner/TestRunner.h
@@ -138,6 +138,7 @@ public:
bool policyDelegateShouldNotifyDone() const;
bool shouldInterceptPostMessage() const;
bool shouldDumpResourcePriorities() const;
+ bool shouldWaitUntilExternURLLoad() const;
blink::WebNotificationPresenter* notification_presenter() const;
bool requestPointerLock();
void requestPointerUnlock();
@@ -440,6 +441,10 @@ private:
// Sets a flag to enable the mock theme.
void setUseMockTheme(const CppArgumentList&, CppVariant*);
+ // Sets a flag that causes the test to be marked as completed when the
+ // WebFrameClient receives a loadURLExternally() call.
+ void waitUntilExternalURLLoad(const CppArgumentList&, CppVariant*);
+
///////////////////////////////////////////////////////////////////////////
// Methods interacting with the WebTestProxy
@@ -700,6 +705,9 @@ private:
bool m_shouldDumpResourcePriorities;
+ // If true, ends the test when an external URL is loaded.
+ bool m_shouldWaitUntilExternalURLLoad;
+
std::set<std::string> m_httpHeadersToClear;
// WAV audio data is stored here.

Powered by Google App Engine
This is Rietveld 408576698