Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / extensions / browser / api / cast_channel / test_util.h
blob60276d1e77a16918c77f6852c27a69e1ed42ccda
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 {
11 namespace core_api {
12 namespace cast_channel {
14 class MockCastTransport
15 : public extensions::core_api::cast_channel::CastTransport {
16 public:
17 MockCastTransport();
19 virtual ~MockCastTransport() override;
21 MOCK_METHOD2(
22 SendMessage,
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));
28 private:
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