| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "modules/presentation/PresentationReceiver.h" | 5 #include "modules/presentation/PresentationReceiver.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/core/v8/V8BindingForTesting.h" | 10 #include "bindings/core/v8/V8BindingForTesting.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void(const WebURL& presentationUrl, | 83 void(const WebURL& presentationUrl, |
| 84 const WebString& presentationId, | 84 const WebString& presentationId, |
| 85 const uint8_t* data, | 85 const uint8_t* data, |
| 86 size_t length, | 86 size_t length, |
| 87 const WebPresentationConnectionProxy* proxy)); | 87 const WebPresentationConnectionProxy* proxy)); |
| 88 | 88 |
| 89 MOCK_METHOD2(closeSession, | 89 MOCK_METHOD2(closeSession, |
| 90 void(const WebURL& presentationUrl, | 90 void(const WebURL& presentationUrl, |
| 91 const WebString& presentationId)); | 91 const WebString& presentationId)); |
| 92 | 92 |
| 93 MOCK_METHOD2(terminateSession, | 93 MOCK_METHOD2(terminateConnection, |
| 94 void(const WebURL& presentationUrl, | 94 void(const WebURL& presentationUrl, |
| 95 const WebString& presentationId)); | 95 const WebString& presentationId)); |
| 96 | 96 |
| 97 MOCK_METHOD2(getAvailability_, | 97 MOCK_METHOD2(getAvailability_, |
| 98 void(const WebVector<WebURL>& availabilityUrls, | 98 void(const WebVector<WebURL>& availabilityUrls, |
| 99 std::unique_ptr<WebPresentationAvailabilityCallbacks>&)); | 99 std::unique_ptr<WebPresentationAvailabilityCallbacks>&)); |
| 100 | 100 |
| 101 MOCK_METHOD1(startListening, void(WebPresentationAvailabilityObserver*)); | 101 MOCK_METHOD1(startListening, void(WebPresentationAvailabilityObserver*)); |
| 102 | 102 |
| 103 MOCK_METHOD1(stopListening, void(WebPresentationAvailabilityObserver*)); | 103 MOCK_METHOD1(stopListening, void(WebPresentationAvailabilityObserver*)); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 TEST_F(PresentationReceiverTest, CreateReceiver) { | 219 TEST_F(PresentationReceiverTest, CreateReceiver) { |
| 220 MockWebPresentationClient client; | 220 MockWebPresentationClient client; |
| 221 EXPECT_CALL(client, setReceiver(testing::_)); | 221 EXPECT_CALL(client, setReceiver(testing::_)); |
| 222 | 222 |
| 223 V8TestingScope scope; | 223 V8TestingScope scope; |
| 224 new PresentationReceiver(&scope.frame(), &client); | 224 new PresentationReceiver(&scope.frame(), &client); |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace blink | 227 } // namespace blink |
| OLD | NEW |