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

Unified Diff: content/renderer/presentation/test_presentation_connection.h

Issue 2730123003: [Presentation API] Add layout test for connection.close() and fix test failures (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: content/renderer/presentation/test_presentation_connection.h
diff --git a/content/renderer/presentation/test_presentation_connection.h b/content/renderer/presentation/test_presentation_connection.h
index b7518b68870014c6f4cd644b15f86ae697dc1388..cd327fdc549919e03ed23d9baf18d1fe0aa3f74e 100644
--- a/content/renderer/presentation/test_presentation_connection.h
+++ b/content/renderer/presentation/test_presentation_connection.h
@@ -10,6 +10,11 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h"
+namespace blink {
+enum class WebPresentationConnectionCloseReason;
+class WebString;
+}
+
namespace content {
class TestPresentationConnection : public blink::WebPresentationConnection {
@@ -24,6 +29,9 @@ class TestPresentationConnection : public blink::WebPresentationConnection {
MOCK_METHOD2(didReceiveBinaryMessage,
void(const uint8_t* data, size_t length));
MOCK_METHOD1(didChangeState, void(blink::WebPresentationConnectionState));
+ MOCK_METHOD2(didClose,
+ void(blink::WebPresentationConnectionCloseReason,
+ const blink::WebString& message));
blink::WebPresentationConnectionProxy* proxy();

Powered by Google App Engine
This is Rietveld 408576698