| OLD | NEW |
| 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 #include <memory> | 5 #include <memory> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "content/public/test/test_browser_thread_bundle.h" | 9 #include "content/public/test/test_browser_thread_bundle.h" |
| 10 #include "content/renderer/presentation/presentation_connection_proxy.h" | 10 #include "content/renderer/presentation/presentation_connection_proxy.h" |
| 11 #include "content/renderer/presentation/test_presentation_connection.h" | 11 #include "content/renderer/presentation/test_presentation_connection.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "third_party/WebKit/public/platform/WebString.h" |
| 13 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nConnection.h" | 14 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nConnection.h" |
| 14 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nController.h" | 15 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nController.h" |
| 15 | 16 |
| 16 using ::testing::_; | 17 using ::testing::_; |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 | 20 |
| 20 class PresentationConnectionProxyTest : public ::testing::Test { | 21 class PresentationConnectionProxyTest : public ::testing::Test { |
| 21 public: | 22 public: |
| 22 PresentationConnectionProxyTest() = default; | 23 PresentationConnectionProxyTest() = default; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 106 |
| 106 controller_connection_proxy_->SendConnectionMessage( | 107 controller_connection_proxy_->SendConnectionMessage( |
| 107 std::move(session_message), | 108 std::move(session_message), |
| 108 base::Bind( | 109 base::Bind( |
| 109 &PresentationConnectionProxyTest::ExpectSendConnectionMessageCallback, | 110 &PresentationConnectionProxyTest::ExpectSendConnectionMessageCallback, |
| 110 base::Unretained(this))); | 111 base::Unretained(this))); |
| 111 run_loop.RunUntilIdle(); | 112 run_loop.RunUntilIdle(); |
| 112 } | 113 } |
| 113 | 114 |
| 114 } // namespace content | 115 } // namespace content |
| OLD | NEW |