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.
5 #include "extensions/browser/api/cast_channel/cast_transport.h"
6 #include "extensions/common/api/cast_channel/cast_channel.pb.h"
7 #include "net/base/ip_endpoint.h"
8 #include "testing/gmock/include/gmock/gmock.h"
10 namespace extensions
{
12 namespace cast_channel
{
14 class MockCastTransport
15 : public extensions::core_api::cast_channel::CastTransport
{
19 virtual ~MockCastTransport() override
;
23 void(const extensions::core_api::cast_channel::CastMessage
& message
,
24 const net::CompletionCallback
& callback
));
25 MOCK_METHOD0(StartReading
, void(void));
26 MOCK_METHOD1(SetReadDelegate
, void(CastTransport::Delegate
* delegate
));
29 DISALLOW_COPY_AND_ASSIGN(MockCastTransport
);
32 // Creates the IPEndpoint 192.168.1.1.
33 net::IPEndPoint
CreateIPEndPointForTest();
35 } // namespace cast_channel
36 } // namespace core_api
37 } // namespace extensions