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

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

Issue 2101853002: Add signal handler for low disk notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete mock method Created 4 years, 5 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/cryptohome_client.cc ('k') | chromeos/dbus/fake_cryptohome_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_CRYPTOHOME_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chromeos/dbus/cryptohome_client.h" 14 #include "chromeos/dbus/cryptohome_client.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 class CHROMEOS_EXPORT FakeCryptohomeClient : public CryptohomeClient { 18 class CHROMEOS_EXPORT FakeCryptohomeClient : public CryptohomeClient {
19 public: 19 public:
20 FakeCryptohomeClient(); 20 FakeCryptohomeClient();
21 ~FakeCryptohomeClient() override; 21 ~FakeCryptohomeClient() override;
22 22
23 void Init(dbus::Bus* bus) override; 23 void Init(dbus::Bus* bus) override;
24 void SetAsyncCallStatusHandlers( 24 void SetAsyncCallStatusHandlers(
25 const AsyncCallStatusHandler& handler, 25 const AsyncCallStatusHandler& handler,
26 const AsyncCallStatusWithDataHandler& data_handler) override; 26 const AsyncCallStatusWithDataHandler& data_handler) override;
27 void ResetAsyncCallStatusHandlers() override; 27 void ResetAsyncCallStatusHandlers() override;
28 void SetLowDiskSpaceHandler(const LowDiskSpaceHandler& handler) override;
28 void WaitForServiceToBeAvailable( 29 void WaitForServiceToBeAvailable(
29 const WaitForServiceToBeAvailableCallback& callback) override; 30 const WaitForServiceToBeAvailableCallback& callback) override;
30 void IsMounted(const BoolDBusMethodCallback& callback) override; 31 void IsMounted(const BoolDBusMethodCallback& callback) override;
31 bool Unmount(bool* success) override; 32 bool Unmount(bool* success) override;
32 void AsyncCheckKey(const cryptohome::Identification& cryptohome_id, 33 void AsyncCheckKey(const cryptohome::Identification& cryptohome_id,
33 const std::string& key, 34 const std::string& key,
34 const AsyncMethodCallback& callback) override; 35 const AsyncMethodCallback& callback) override;
35 void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id, 36 void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id,
36 const std::string& from_key, 37 const std::string& from_key,
37 const std::string& to_key, 38 const std::string& to_key,
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 std::map<std::string, std::vector<uint8_t>> install_attrs_; 240 std::map<std::string, std::vector<uint8_t>> install_attrs_;
240 bool locked_; 241 bool locked_;
241 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; 242 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_;
242 243
243 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); 244 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient);
244 }; 245 };
245 246
246 } // namespace chromeos 247 } // namespace chromeos
247 248
248 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 249 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | chromeos/dbus/fake_cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698