Unity Scopes API
MockObject.h
1 /*
2  * Copyright (C) 2014 Canonical Ltd
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * 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 Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Michi Henning <michi.henning@canonical.com>
17  */
18 
19 #pragma once
20 
21 #include <unity/scopes/Object.h>
22 
23 #include <gmock/gmock.h>
24 
25 namespace unity
26 {
27 
28 namespace scopes
29 {
30 
31 namespace testing
32 {
33 
35 
36 class MockObject : public virtual Object
37 {
38 public:
39  MockObject() = default;
40 
41  MOCK_METHOD0(endpoint, std::string());
42  MOCK_METHOD0(identity, std::string());
43  MOCK_METHOD0(target_category, std::string());
44  MOCK_METHOD0(timeout, int64_t());
45  MOCK_METHOD0(to_string, std::string());
46 };
47 
49 
50 } // namespace testing
51 
52 } // namespace scopes
53 
54 } // namespace unity
Definition: OnlineAccountClient.h:39
char const * to_string(CompletionDetails::CompletionStatus status)
Convenience function to convert a CompletionDetails::CompletionStatus enumerator to a string...
Definition: CompletionDetails.cpp:95
Top-level namespace for all things Unity-related.
Definition: Version.h:49