• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 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 #ifndef DISCOVERY_COMMON_TESTING_MOCK_REPORTING_CLIENT_H_
6 #define DISCOVERY_COMMON_TESTING_MOCK_REPORTING_CLIENT_H_
7 
8 #include "discovery/common/reporting_client.h"
9 #include "gmock/gmock.h"
10 
11 namespace openscreen {
12 namespace discovery {
13 
14 class MockReportingClient : public ReportingClient {
15  public:
16   MOCK_METHOD1(OnFatalError, void(Error error));
17   MOCK_METHOD1(OnRecoverableError, void(Error error));
18 };
19 
20 }  // namespace discovery
21 }  // namespace openscreen
22 
23 #endif  // DISCOVERY_COMMON_TESTING_MOCK_REPORTING_CLIENT_H_
24