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

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

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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/fake_easy_unlock_client.h ('k') | chromeos/dbus/fake_gsm_sms_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_FAKE_GSM_SMS_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_GSM_SMS_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_GSM_SMS_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_GSM_SMS_CLIENT_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
12 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
11 #include "base/values.h" 14 #include "base/values.h"
12 #include "chromeos/dbus/gsm_sms_client.h" 15 #include "chromeos/dbus/gsm_sms_client.h"
13 #include "dbus/object_path.h" 16 #include "dbus/object_path.h"
14 17
15 namespace chromeos { 18 namespace chromeos {
16 19
17 // A fake implementation of GsmSMSClient used for tests. 20 // A fake implementation of GsmSMSClient used for tests.
18 class CHROMEOS_EXPORT FakeGsmSMSClient : public GsmSMSClient { 21 class CHROMEOS_EXPORT FakeGsmSMSClient : public GsmSMSClient {
19 public: 22 public:
20 FakeGsmSMSClient(); 23 FakeGsmSMSClient();
21 ~FakeGsmSMSClient() override; 24 ~FakeGsmSMSClient() override;
22 25
23 // GsmSMSClient overrides 26 // GsmSMSClient overrides
24 void Init(dbus::Bus* bus) override; 27 void Init(dbus::Bus* bus) override;
25 void SetSmsReceivedHandler(const std::string& service_name, 28 void SetSmsReceivedHandler(const std::string& service_name,
26 const dbus::ObjectPath& object_path, 29 const dbus::ObjectPath& object_path,
27 const SmsReceivedHandler& handler) override; 30 const SmsReceivedHandler& handler) override;
28 void ResetSmsReceivedHandler(const std::string& service_name, 31 void ResetSmsReceivedHandler(const std::string& service_name,
29 const dbus::ObjectPath& object_path) override; 32 const dbus::ObjectPath& object_path) override;
30 void Delete(const std::string& service_name, 33 void Delete(const std::string& service_name,
31 const dbus::ObjectPath& object_path, 34 const dbus::ObjectPath& object_path,
32 uint32 index, 35 uint32_t index,
33 const DeleteCallback& callback) override; 36 const DeleteCallback& callback) override;
34 void Get(const std::string& service_name, 37 void Get(const std::string& service_name,
35 const dbus::ObjectPath& object_path, 38 const dbus::ObjectPath& object_path,
36 uint32 index, 39 uint32_t index,
37 const GetCallback& callback) override; 40 const GetCallback& callback) override;
38 void List(const std::string& service_name, 41 void List(const std::string& service_name,
39 const dbus::ObjectPath& object_path, 42 const dbus::ObjectPath& object_path,
40 const ListCallback& callback) override; 43 const ListCallback& callback) override;
41 void RequestUpdate(const std::string& service_name, 44 void RequestUpdate(const std::string& service_name,
42 const dbus::ObjectPath& object_path) override; 45 const dbus::ObjectPath& object_path) override;
43 46
44 // Sets if the command line switch for test is present. RequestUpdate() 47 // Sets if the command line switch for test is present. RequestUpdate()
45 // changes its behavior depending on the switch. 48 // changes its behavior depending on the switch.
46 void set_sms_test_message_switch_present(bool is_present) { 49 void set_sms_test_message_switch_present(bool is_present) {
(...skipping 13 matching lines...) Expand all
60 bool sms_test_message_switch_present_; 63 bool sms_test_message_switch_present_;
61 64
62 base::WeakPtrFactory<FakeGsmSMSClient> weak_ptr_factory_; 65 base::WeakPtrFactory<FakeGsmSMSClient> weak_ptr_factory_;
63 66
64 DISALLOW_COPY_AND_ASSIGN(FakeGsmSMSClient); 67 DISALLOW_COPY_AND_ASSIGN(FakeGsmSMSClient);
65 }; 68 };
66 69
67 } // namespace chromeos 70 } // namespace chromeos
68 71
69 #endif // CHROMEOS_DBUS_FAKE_GSM_SMS_CLIENT_H_ 72 #endif // CHROMEOS_DBUS_FAKE_GSM_SMS_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_easy_unlock_client.h ('k') | chromeos/dbus/fake_gsm_sms_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698