OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_MOCK_DEBUG_DAEMON_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_DEBUG_DAEMON_CLIENT_H_ |
6 #define CHROMEOS_DBUS_MOCK_DEBUG_DAEMON_CLIENT_H_ | 6 #define CHROMEOS_DBUS_MOCK_DEBUG_DAEMON_CLIENT_H_ |
7 | 7 |
8 #include "chromeos/dbus/debug_daemon_client.h" | 8 #include "chromeos/dbus/debug_daemon_client.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 class MockDebugDaemonClient : public DebugDaemonClient { | 13 class MockDebugDaemonClient : public DebugDaemonClient { |
14 public: | 14 public: |
15 MockDebugDaemonClient(); | 15 MockDebugDaemonClient(); |
16 virtual ~MockDebugDaemonClient(); | 16 virtual ~MockDebugDaemonClient(); |
17 | 17 |
18 MOCK_METHOD2(GetDebugLogs, void(base::PlatformFile, | 18 MOCK_METHOD2(GetDebugLogs, void(base::PlatformFile, |
19 const GetDebugLogsCallback&)); | 19 const GetDebugLogsCallback&)); |
| 20 MOCK_METHOD2(SetDebugMode, void(const std::string&, |
| 21 const SetDebugModeCallback&)); |
20 MOCK_METHOD1(RequestStopSystemTracing, | 22 MOCK_METHOD1(RequestStopSystemTracing, |
21 bool(const StopSystemTracingCallback&)); | 23 bool(const StopSystemTracingCallback&)); |
22 MOCK_METHOD0(StartSystemTracing, void()); | 24 MOCK_METHOD0(StartSystemTracing, void()); |
23 }; | 25 }; |
24 | 26 |
25 } // namespace chromeos | 27 } // namespace chromeos |
26 | 28 |
27 #endif // CHROMEOS_DBUS_MOCK_DEBUG_DAEMON_CLIENT_H_ | 29 #endif // CHROMEOS_DBUS_MOCK_DEBUG_DAEMON_CLIENT_H_ |
OLD | NEW |