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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimTest.h

Issue 2732483004: Reinitialize WindowProxy on navigations. (Closed)
Patch Set: . Created 3 years, 10 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: third_party/WebKit/Source/web/tests/sim/SimTest.h
diff --git a/third_party/WebKit/Source/web/tests/sim/SimTest.h b/third_party/WebKit/Source/web/tests/sim/SimTest.h
index d3a84a71caccb1154edd6b2e7e1d5f23ae844bd3..a0ffbc805561760c6dc3ebcfeda71e74c0a6fae7 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimTest.h
+++ b/third_party/WebKit/Source/web/tests/sim/SimTest.h
@@ -5,12 +5,13 @@
#ifndef SimTest_h
#define SimTest_h
+#include <gtest/gtest.h>
#include "web/tests/FrameTestHelpers.h"
#include "web/tests/sim/SimCompositor.h"
#include "web/tests/sim/SimNetwork.h"
#include "web/tests/sim/SimPage.h"
+#include "web/tests/sim/SimWebFrameClient.h"
#include "web/tests/sim/SimWebViewClient.h"
-#include <gtest/gtest.h>
namespace blink {
@@ -34,12 +35,21 @@ class SimTest : public ::testing::Test {
const SimWebViewClient& webViewClient() const;
SimCompositor& compositor();
+ Vector<String>& consoleMessages() { return m_consoleMessages; }
+
private:
+ friend class SimWebFrameClient;
+
+ void addConsoleMessage(const String&);
+
SimNetwork m_network;
SimCompositor m_compositor;
SimWebViewClient m_webViewClient;
+ SimWebFrameClient m_webFrameClient;
SimPage m_page;
FrameTestHelpers::WebViewHelper m_webViewHelper;
+
+ Vector<String> m_consoleMessages;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/tests/WindowProxyTest.cpp ('k') | third_party/WebKit/Source/web/tests/sim/SimTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698