Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mock_rpc_report.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
17  */
18 
19 #ifndef MIR_TEST_DOUBLES_MOCK_RPC_REPORT_H_
20 #define MIR_TEST_DOUBLES_MOCK_RPC_REPORT_H_
21 
23 
24 #include "mir_protobuf_wire.pb.h"
25 
26 #include <gmock/gmock.h>
27 
28 namespace mir
29 {
30 namespace test
31 {
32 namespace doubles
33 {
34 
36 {
37 public:
38  ~MockRpcReport() noexcept {}
39 
41  void(mir::protobuf::wire::Invocation const&));
43  void(mir::protobuf::wire::Invocation const&));
45  void(mir::protobuf::wire::Invocation const&,
46  boost::system::error_code const& error));
47 
49  void(boost::system::error_code const&));
51  void(mir::protobuf::wire::Result const&));
53  void(std::exception const&));
54 
56  void(MirEvent const&));
58  void(mir::protobuf::Event const&));
59 
61  void(mir::protobuf::wire::Result const&));
63  void(mir::protobuf::wire::Result const&));
64 
66  void(mir::protobuf::wire::Result const&,
67  std::exception const& ex));
68 
70  void(google::protobuf::Message const&,
71  std::vector<int32_t> const&));
72 
73  MOCK_METHOD1(connection_failure, void (std::exception const&));
74 };
75 
76 
77 }
78 }
79 }
80 
81 #endif /* MIR_TEST_DOUBLES_MOCK_RPC_REPORT_H_ */
virtual void invocation_succeeded(mir::protobuf::wire::Invocation const &invocation)=0
virtual void orphaned_result(mir::protobuf::wire::Result const &result)=0
~MockRpcReport() noexcept
Definition: mock_rpc_report.h:38
virtual void invocation_failed(mir::protobuf::wire::Invocation const &invocation, boost::system::error_code const &error)=0
virtual void file_descriptors_received(google::protobuf::Message const &response, std::vector< int32_t > const &fds)=0
MOCK_METHOD2(invocation_failed, void(mir::protobuf::wire::Invocation const &, boost::system::error_code const &error))
virtual void result_processing_failed(mir::protobuf::wire::Result const &result, std::exception const &ex)=0
virtual void header_receipt_failed(boost::system::error_code const &error)=0
Definition: rpc_report.h:43
virtual void connection_failure(std::exception const &ex)=0
virtual void result_receipt_succeeded(mir::protobuf::wire::Result const &result)=0
virtual void event_parsing_succeeded(MirEvent const &event)=0
virtual void complete_response(mir::protobuf::wire::Result const &result)=0
Definition: mock_rpc_report.h:35
virtual void invocation_requested(mir::protobuf::wire::Invocation const &invocation)=0
MOCK_METHOD1(invocation_requested, void(mir::protobuf::wire::Invocation const &))
error
Definition: connector_report_tp.h:60
Definition: event.h:207
virtual void result_receipt_failed(std::exception const &ex)=0
virtual void event_parsing_failed(mir::protobuf::Event const &event)=0

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014