blob: c7612169b9d80490d6f51d86ef458cd47994db99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CAST_COMMON_CHANNEL_TEST_MOCK_SOCKET_ERROR_HANDLER_H_
#define CAST_COMMON_CHANNEL_TEST_MOCK_SOCKET_ERROR_HANDLER_H_
#include "cast/common/channel/virtual_connection_router.h"
#include "gmock/gmock.h"
#include "platform/base/error.h"
namespace openscreen {
namespace cast {
class MockSocketErrorHandler
: public VirtualConnectionRouter::SocketErrorHandler {
public:
MOCK_METHOD(void, OnClose, (CastSocket * socket), (override));
MOCK_METHOD(void, OnError, (CastSocket * socket, Error error), (override));
};
} // namespace cast
} // namespace openscreen
#endif // CAST_COMMON_CHANNEL_TEST_MOCK_SOCKET_ERROR_HANDLER_H_
|