Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: chromeos/dbus/mock_modem_messaging_client.h

Issue 10533006: Support the ModemManager1 interfaces for SMS messages (Closed) Base URL: http://git.chromium.org/git/chromium/src@master
Patch Set: Only deliver messages after call to RequestUpdate Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/dbus/mock_gsm_sms_client.h ('k') | chromeos/dbus/mock_modem_messaging_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_GSM_SMS_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_MODEM_MESSAGING_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_GSM_SMS_CLIENT_H_ 6 #define CHROMEOS_DBUS_MOCK_MODEM_MESSAGING_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
10
9 #include "base/values.h" 11 #include "base/values.h"
10 #include "chromeos/dbus/gsm_sms_client.h" 12 #include "chromeos/dbus/modem_messaging_client.h"
11 #include "dbus/object_path.h" 13 #include "dbus/object_path.h"
12 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
13 15
14 namespace chromeos { 16 namespace chromeos {
15 17
16 class MockGsmSMSClient : public GsmSMSClient { 18 class MockModemMessagingClient : public ModemMessagingClient {
17 public: 19 public:
18 MockGsmSMSClient(); 20 MockModemMessagingClient();
19 virtual ~MockGsmSMSClient(); 21 virtual ~MockModemMessagingClient();
20 22
21 MOCK_METHOD3(SetSmsReceivedHandler, void(const std::string& service_name, 23 MOCK_METHOD3(SetSmsReceivedHandler, void(const std::string& service_name,
22 const dbus::ObjectPath& object_path, 24 const dbus::ObjectPath& object_path,
23 const SmsReceivedHandler& handler)); 25 const SmsReceivedHandler& handler));
24 MOCK_METHOD2(ResetSmsReceivedHandler, 26 MOCK_METHOD2(ResetSmsReceivedHandler,
25 void(const std::string& service_name, 27 void(const std::string& service_name,
26 const dbus::ObjectPath& object_path)); 28 const dbus::ObjectPath& object_path));
27 MOCK_METHOD4(Delete, void(const std::string& service_name, 29 MOCK_METHOD4(Delete, void(const std::string& service_name,
28 const dbus::ObjectPath& object_path, 30 const dbus::ObjectPath& object_path,
29 uint32 index, 31 const dbus::ObjectPath& sms_path,
30 const DeleteCallback& callback)); 32 const DeleteCallback& callback));
31 MOCK_METHOD4(Get, void(const std::string& service_name,
32 const dbus::ObjectPath& object_path,
33 uint32 index,
34 const GetCallback& callback));
35 MOCK_METHOD3(List, void(const std::string& service_name, 33 MOCK_METHOD3(List, void(const std::string& service_name,
36 const dbus::ObjectPath& object_path, 34 const dbus::ObjectPath& object_path,
37 const ListCallback& callback)); 35 const ListCallback& callback));
38 MOCK_METHOD2(RequestUpdate, void(const std::string& service_name, 36 MOCK_METHOD2(RequestUpdate, void(const std::string& service_name,
hashimoto 2012/06/12 02:24:04 nit: Remove this.
39 const dbus::ObjectPath& object_path)); 37 const dbus::ObjectPath& object_path));
40 }; 38 };
41 39
42 } // namespace chromeos 40 } // namespace chromeos
43 41
44 #endif // CHROMEOS_DBUS_MOCK_GSM_SMS_CLIENT_H_ 42 #endif // CHROMEOS_DBUS_MOCK_MODEM_MESSAGING_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_gsm_sms_client.h ('k') | chromeos/dbus/mock_modem_messaging_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698