| Index: content/renderer/presentation/presentation_dispatcher_unittest.cc
|
| diff --git a/content/renderer/presentation/presentation_dispatcher_unittest.cc b/content/renderer/presentation/presentation_dispatcher_unittest.cc
|
| index 8f49caeb66cd62072e731cc1e62be6e3458ea0b4..66a49b8e2e613188b3d8151fb23405e5a8a4ebe5 100644
|
| --- a/content/renderer/presentation/presentation_dispatcher_unittest.cc
|
| +++ b/content/renderer/presentation/presentation_dispatcher_unittest.cc
|
| @@ -10,6 +10,9 @@
|
| #include "content/renderer/presentation/presentation_dispatcher.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "third_party/WebKit/public/platform/modules/presentation/WebPresentationAvailabilityObserver.h"
|
| +#include "third_party/WebKit/public/platform/modules/presentation/WebPresentationConnection.h"
|
| +#include "third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h"
|
| +#include "third_party/WebKit/public/platform/modules/presentation/WebPresentationController.h"
|
| #include "third_party/WebKit/public/platform/modules/presentation/WebPresentationError.h"
|
| #include "third_party/WebKit/public/platform/modules/presentation/WebPresentationSessionInfo.h"
|
| #include "third_party/WebKit/public/web/WebArrayBuffer.h"
|
| @@ -19,7 +22,7 @@ using ::testing::Invoke;
|
| using blink::WebArrayBuffer;
|
| using blink::WebPresentationAvailabilityCallbacks;
|
| using blink::WebPresentationAvailabilityObserver;
|
| -using blink::WebPresentationConnectionCallback;
|
| +using blink::WebPresentationConnectionCallbacks;
|
| using blink::WebPresentationError;
|
| using blink::WebPresentationSessionInfo;
|
| using blink::WebString;
|
| @@ -118,7 +121,7 @@ class MockPresentationService : public PresentationService {
|
| };
|
|
|
| class TestWebPresentationConnectionCallback
|
| - : public WebPresentationConnectionCallback {
|
| + : public WebPresentationConnectionCallbacks {
|
| public:
|
| TestWebPresentationConnectionCallback(WebURL url, WebString id)
|
| : url_(url), id_(id), callback_called_(false) {}
|
| @@ -132,6 +135,8 @@ class TestWebPresentationConnectionCallback
|
| EXPECT_EQ(info.id, id_);
|
| }
|
|
|
| + blink::WebPresentationConnection* getConnection() override { return nullptr; }
|
| +
|
| private:
|
| const WebURL url_;
|
| const WebString id_;
|
| @@ -139,7 +144,7 @@ class TestWebPresentationConnectionCallback
|
| };
|
|
|
| class TestWebPresentationConnectionErrorCallback
|
| - : public WebPresentationConnectionCallback {
|
| + : public WebPresentationConnectionCallbacks {
|
| public:
|
| TestWebPresentationConnectionErrorCallback(
|
| WebPresentationError::ErrorType error_type,
|
| @@ -155,6 +160,8 @@ class TestWebPresentationConnectionErrorCallback
|
| EXPECT_EQ(error.message, message_);
|
| }
|
|
|
| + blink::WebPresentationConnection* getConnection() override { return nullptr; }
|
| +
|
| private:
|
| const WebPresentationError::ErrorType error_type_;
|
| const WebString message_;
|
| @@ -320,7 +327,7 @@ TEST_F(PresentationDispatcherTest, TestSendString) {
|
| EXPECT_EQ(message.utf8(), message_request->message.value());
|
| callback.Run(true);
|
| }));
|
| - dispatcher_.sendString(url1_, presentation_id_, message);
|
| + dispatcher_.sendString(url1_, presentation_id_, message, nullptr);
|
| run_loop.RunUntilIdle();
|
| }
|
|
|
| @@ -341,7 +348,7 @@ TEST_F(PresentationDispatcherTest, TestSendArrayBuffer) {
|
| callback.Run(true);
|
| }));
|
| dispatcher_.sendArrayBuffer(url1_, presentation_id_, array_buffer_data(),
|
| - array_buffer_.byteLength());
|
| + array_buffer_.byteLength(), nullptr);
|
| run_loop.RunUntilIdle();
|
| }
|
|
|
| @@ -362,7 +369,7 @@ TEST_F(PresentationDispatcherTest, TestSendBlobData) {
|
| callback.Run(true);
|
| }));
|
| dispatcher_.sendBlobData(url1_, presentation_id_, array_buffer_data(),
|
| - array_buffer_.byteLength());
|
| + array_buffer_.byteLength(), nullptr);
|
| run_loop.RunUntilIdle();
|
| }
|
|
|
|
|