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

Side by Side Diff: chrome/browser/media/router/browser_presentation_connection_proxy_unittest.cc

Issue 2679423004: Remove unused lambda capture in browser_presentation_connection_proxy_unittest. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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" 9 #include "chrome/browser/media/router/media_source.h"
10 #include "chrome/browser/media/router/media_source_helper.h" 10 #include "chrome/browser/media/router/media_source_helper.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 expected_data.push_back(42); 97 expected_data.push_back(42);
98 expected_data.push_back(36); 98 expected_data.push_back(36);
99 99
100 blink::mojom::ConnectionMessagePtr session_message = 100 blink::mojom::ConnectionMessagePtr session_message =
101 blink::mojom::ConnectionMessage::New(); 101 blink::mojom::ConnectionMessage::New();
102 session_message->type = blink::mojom::PresentationMessageType::BINARY; 102 session_message->type = blink::mojom::PresentationMessageType::BINARY;
103 session_message->data = expected_data; 103 session_message->data = expected_data;
104 104
105 base::MockCallback<base::Callback<void(bool)>> mock_on_message_callback; 105 base::MockCallback<base::Callback<void(bool)>> mock_on_message_callback;
106 EXPECT_CALL(*mock_router(), SendRouteBinaryMessageInternal(_, _, _)) 106 EXPECT_CALL(*mock_router(), SendRouteBinaryMessageInternal(_, _, _))
107 .WillOnce(::testing::Invoke([this, &expected_data]( 107 .WillOnce(::testing::Invoke([&expected_data](
108 const MediaRoute::Id& route_id, std::vector<uint8_t>* data, 108 const MediaRoute::Id& route_id, std::vector<uint8_t>* data,
109 const BrowserPresentationConnectionProxy::OnMessageCallback& 109 const BrowserPresentationConnectionProxy::OnMessageCallback&
110 callback) { EXPECT_EQ(expected_data, *data); })); 110 callback) { EXPECT_EQ(expected_data, *data); }));
111 111
112 browser_connection_proxy()->OnMessage(std::move(session_message), 112 browser_connection_proxy()->OnMessage(std::move(session_message),
113 mock_on_message_callback.Get()); 113 mock_on_message_callback.Get());
114 } 114 }
115 115
116 } // namespace media_router 116 } // namespace media_router
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698