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 CHROME_BROWSER_CHROMEOS_DBUS_MOCK_CASHEW_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_CASHEW_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_MOCK_CASHEW_CLIENT_H_ | 6 #define CHROMEOS_DBUS_MOCK_CASHEW_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/chromeos/dbus/cashew_client.h" | 9 #include "chromeos/dbus/cashew_client.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 class MockCashewClient : public CashewClient { | 14 class MockCashewClient : public CashewClient { |
15 public: | 15 public: |
16 MockCashewClient(); | 16 MockCashewClient(); |
17 virtual ~MockCashewClient(); | 17 virtual ~MockCashewClient(); |
18 | 18 |
19 MOCK_METHOD1(SetDataPlansUpdateHandler, void(DataPlansUpdateHandler handler)); | 19 MOCK_METHOD1(SetDataPlansUpdateHandler, void(DataPlansUpdateHandler handler)); |
20 MOCK_METHOD0(ResetDataPlansUpdateHandler, void()); | 20 MOCK_METHOD0(ResetDataPlansUpdateHandler, void()); |
21 MOCK_METHOD0(RequestDataPlansUpdate, void()); | 21 MOCK_METHOD0(RequestDataPlansUpdate, void()); |
22 }; | 22 }; |
23 | 23 |
24 } // namespace chromeos | 24 } // namespace chromeos |
25 | 25 |
26 #endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_CASHEW_CLIENT_H_ | 26 #endif // CHROMEOS_DBUS_MOCK_CASHEW_CLIENT_H_ |
OLD | NEW |