| 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 "chrome/browser/media/router/browser_presentation_connection_proxy.h" | 5 #include "chrome/browser/media/router/browser_presentation_connection_proxy.h" |
| 6 | 6 |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "base/test/mock_callback.h" | 8 #include "base/test/mock_callback.h" |
| 9 #include "chrome/browser/media/router/media_source.h" | |
| 10 #include "chrome/browser/media/router/media_source_helper.h" | |
| 11 #include "chrome/browser/media/router/mock_media_router.h" | 9 #include "chrome/browser/media/router/mock_media_router.h" |
| 10 #include "chrome/common/media_router/media_source.h" |
| 11 #include "chrome/common/media_router/media_source_helper.h" |
| 12 #include "content/public/common/presentation_connection_message.h" | 12 #include "content/public/common/presentation_connection_message.h" |
| 13 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.h" |
| 14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 15 | 15 |
| 16 using ::testing::_; | 16 using ::testing::_; |
| 17 | 17 |
| 18 namespace media_router { | 18 namespace media_router { |
| 19 | 19 |
| 20 constexpr char kMediaRouteId[] = "MockRouteId"; | 20 constexpr char kMediaRouteId[] = "MockRouteId"; |
| 21 | 21 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 [&expected_data]( | 104 [&expected_data]( |
| 105 const MediaRoute::Id& route_id, std::vector<uint8_t>* data, | 105 const MediaRoute::Id& route_id, std::vector<uint8_t>* data, |
| 106 const BrowserPresentationConnectionProxy::OnMessageCallback& | 106 const BrowserPresentationConnectionProxy::OnMessageCallback& |
| 107 callback) { EXPECT_EQ(*data, expected_data); })); | 107 callback) { EXPECT_EQ(*data, expected_data); })); |
| 108 | 108 |
| 109 browser_connection_proxy()->OnMessage(std::move(connection_message), | 109 browser_connection_proxy()->OnMessage(std::move(connection_message), |
| 110 mock_on_message_callback.Get()); | 110 mock_on_message_callback.Get()); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace media_router | 113 } // namespace media_router |
| OLD | NEW |