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

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

Issue 24637004: cryptohome: Merge FakeCryptohomeClient and CryptohomeClinentStubImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the build Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.cc ('k') | chromeos/dbus/fake_image_burner_client.h » ('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 <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chromeos/dbus/gsm_sms_client.h" 12 #include "chromeos/dbus/gsm_sms_client.h"
13 #include "dbus/object_path.h" 13 #include "dbus/object_path.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 // A fake implementation of GsmSMSClient used for tests. 17 // A fake implementation of GsmSMSClient used for tests.
18 class FakeGsmSMSClient : public GsmSMSClient { 18 class CHROMEOS_EXPORT FakeGsmSMSClient : public GsmSMSClient {
19 public: 19 public:
20 FakeGsmSMSClient(); 20 FakeGsmSMSClient();
21 virtual ~FakeGsmSMSClient(); 21 virtual ~FakeGsmSMSClient();
22 22
23 // GsmSMSClient overrides 23 // GsmSMSClient overrides
24 virtual void Init(dbus::Bus* bus) OVERRIDE; 24 virtual void Init(dbus::Bus* bus) OVERRIDE;
25 virtual void SetSmsReceivedHandler(const std::string& service_name, 25 virtual void SetSmsReceivedHandler(const std::string& service_name,
26 const dbus::ObjectPath& object_path, 26 const dbus::ObjectPath& object_path,
27 const SmsReceivedHandler& handler) 27 const SmsReceivedHandler& handler)
28 OVERRIDE; 28 OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 bool sms_test_message_switch_present_; 62 bool sms_test_message_switch_present_;
63 63
64 base::WeakPtrFactory<FakeGsmSMSClient> weak_ptr_factory_; 64 base::WeakPtrFactory<FakeGsmSMSClient> weak_ptr_factory_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(FakeGsmSMSClient); 66 DISALLOW_COPY_AND_ASSIGN(FakeGsmSMSClient);
67 }; 67 };
68 68
69 } // namespace chromeos 69 } // namespace chromeos
70 70
71 #endif // CHROMEOS_DBUS_FAKE_GSM_SMS_CLIENT_H_ 71 #endif // CHROMEOS_DBUS_FAKE_GSM_SMS_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.cc ('k') | chromeos/dbus/fake_image_burner_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698