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

Side by Side Diff: extensions/browser/api/cast_channel/cast_test_util.cc

Issue 2926313002: Revert of [cast_channel] Move cast_channel related files from //extensions to //components (Closed)
Patch Set: Created 3 years, 6 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "extensions/browser/api/cast_channel/cast_test_util.h"
6
7 #include <utility>
8
9 #include "net/base/ip_address.h"
10
11 namespace extensions {
12 namespace api {
13 namespace cast_channel {
14
15 const char kTestExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf";
16
17 MockCastTransport::MockCastTransport() {
18 }
19 MockCastTransport::~MockCastTransport() {
20 }
21
22 CastTransport::Delegate* MockCastTransport::current_delegate() const {
23 CHECK(delegate_);
24 return delegate_.get();
25 }
26
27 void MockCastTransport::SetReadDelegate(
28 std::unique_ptr<CastTransport::Delegate> delegate) {
29 delegate_ = std::move(delegate);
30 }
31
32 MockCastTransportDelegate::MockCastTransportDelegate() {
33 }
34 MockCastTransportDelegate::~MockCastTransportDelegate() {
35 }
36
37 MockCastSocket::MockCastSocket() : mock_transport_(new MockCastTransport()) {}
38 MockCastSocket::~MockCastSocket() {
39 }
40
41 net::IPEndPoint CreateIPEndPointForTest() {
42 return net::IPEndPoint(net::IPAddress(192, 168, 1, 1), 8009);
43 }
44
45 } // namespace cast_channel
46 } // namespace api
47 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/cast_test_util.h ('k') | extensions/browser/api/cast_channel/cast_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698