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

Side by Side Diff: components/cast_channel/cast_test_util.cc

Issue 2974523002: [cast_channel] Make CastSocketService a global leaky singleton (Closed)
Patch Set: merge with master Created 3 years, 5 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 "components/cast_channel/cast_test_util.h" 5 #include "components/cast_channel/cast_test_util.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "net/base/ip_address.h" 9 #include "net/base/ip_address.h"
10 10
(...skipping 11 matching lines...) Expand all
22 std::unique_ptr<CastTransport::Delegate> delegate) { 22 std::unique_ptr<CastTransport::Delegate> delegate) {
23 delegate_ = std::move(delegate); 23 delegate_ = std::move(delegate);
24 } 24 }
25 25
26 MockCastTransportDelegate::MockCastTransportDelegate() {} 26 MockCastTransportDelegate::MockCastTransportDelegate() {}
27 MockCastTransportDelegate::~MockCastTransportDelegate() {} 27 MockCastTransportDelegate::~MockCastTransportDelegate() {}
28 28
29 MockCastSocketObserver::MockCastSocketObserver() {} 29 MockCastSocketObserver::MockCastSocketObserver() {}
30 MockCastSocketObserver::~MockCastSocketObserver() {} 30 MockCastSocketObserver::~MockCastSocketObserver() {}
31 31
32 MockCastSocketService::MockCastSocketService() {}
33 MockCastSocketService::~MockCastSocketService() {}
34
32 MockCastSocket::MockCastSocket() 35 MockCastSocket::MockCastSocket()
33 : channel_id_(0), 36 : channel_id_(0),
34 error_state_(ChannelError::NONE), 37 error_state_(ChannelError::NONE),
35 keep_alive_(false), 38 keep_alive_(false),
36 audio_only_(false), 39 audio_only_(false),
37 mock_transport_(new MockCastTransport()) {} 40 mock_transport_(new MockCastTransport()) {}
38 MockCastSocket::~MockCastSocket() {} 41 MockCastSocket::~MockCastSocket() {}
39 42
40 net::IPEndPoint CreateIPEndPointForTest() { 43 net::IPEndPoint CreateIPEndPointForTest() {
41 return net::IPEndPoint(net::IPAddress(192, 168, 1, 1), 8009); 44 return net::IPEndPoint(net::IPAddress(192, 168, 1, 1), 8009);
42 } 45 }
43 46
44 } // namespace cast_channel 47 } // namespace cast_channel
OLDNEW
« no previous file with comments | « components/cast_channel/cast_test_util.h ('k') | extensions/browser/api/cast_channel/cast_channel_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698