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

Side by Side Diff: content/renderer/presentation/test_presentation_connection.h

Issue 2471573005: [Presentation API] (5th) (1-UA) integrate controller and receiver side for 1-UA messaging (Closed)
Patch Set: merge with master 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_TEST_HELPER_H_ 5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_TEST_HELPER_H_
6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_TEST_HELPER_H_ 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_TEST_HELPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio nConnection.h" 11 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio nConnection.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class TestPresentationConnection : public blink::WebPresentationConnection { 15 class TestPresentationConnection : public blink::WebPresentationConnection {
16 public: 16 public:
17 TestPresentationConnection(); 17 TestPresentationConnection();
18 ~TestPresentationConnection(); 18 ~TestPresentationConnection();
19 19
20 void bindProxy( 20 void bindProxy(
21 std::unique_ptr<blink::WebPresentationConnectionProxy> proxy) override; 21 std::unique_ptr<blink::WebPresentationConnectionProxy> proxy) override;
22 22
23 MOCK_METHOD1(didReceiveTextMessage, void(const blink::WebString& message)); 23 MOCK_METHOD1(didReceiveTextMessage, void(const blink::WebString& message));
24 MOCK_METHOD2(didReceiveBinaryMessage, 24 MOCK_METHOD2(didReceiveBinaryMessage,
25 void(const uint8_t* data, size_t length)); 25 void(const uint8_t* data, size_t length));
26 MOCK_METHOD1(didChangeState, void(blink::WebPresentationConnectionState)); 26 MOCK_METHOD1(didChangeState, void(blink::WebPresentationConnectionState));
27 27
28 blink::WebPresentationConnectionProxy* proxy();
29
28 private: 30 private:
29 std::unique_ptr<blink::WebPresentationConnectionProxy> proxy_; 31 std::unique_ptr<blink::WebPresentationConnectionProxy> proxy_;
30 }; 32 };
31 33
32 } // namespace content 34 } // namespace content
33 35
34 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_TEST_HELPER_H_ 36 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698