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

Unified Diff: chromeos/dbus/fake_cryptohome_client.h

Issue 2324793003: Do a better job at faking simple challenge signatures. (Closed)
Patch Set: A bit too quick on that private: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/fake_cryptohome_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_cryptohome_client.h
diff --git a/chromeos/dbus/fake_cryptohome_client.h b/chromeos/dbus/fake_cryptohome_client.h
index 02dece263f323ff5a71e36b183925ef21a9d9f0b..1173e223ea6837d3923d893353c67d1b3c05cb6c 100644
--- a/chromeos/dbus/fake_cryptohome_client.h
+++ b/chromeos/dbus/fake_cryptohome_client.h
@@ -8,6 +8,8 @@
#include <stdint.h>
#include <map>
+#include <string>
+#include <vector>
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -220,12 +222,18 @@ class CHROMEOS_EXPORT FakeCryptohomeClient : public CryptohomeClient {
const ProtobufMethodCallback& callback);
// Posts tasks which return fake results to the UI thread.
- void ReturnAsyncMethodResult(const AsyncMethodCallback& callback,
- bool returns_data);
+ void ReturnAsyncMethodResult(const AsyncMethodCallback& callback);
- // This method is used to implement ReturnAsyncMethodResult.
- void ReturnAsyncMethodResultInternal(const AsyncMethodCallback& callback,
- bool returns_data);
+ // Posts tasks which return fake data to the UI thread.
+ void ReturnAsyncMethodData(const AsyncMethodCallback& callback,
+ const std::string& data);
+
+ // This method is used to implement ReturnAsyncMethodResult without data.
+ void ReturnAsyncMethodResultInternal(const AsyncMethodCallback& callback);
+
+ // This method is used to implement ReturnAsyncMethodResult with data.
+ void ReturnAsyncMethodDataInternal(const AsyncMethodCallback& callback,
+ const std::string& data);
bool service_is_available_;
int async_call_id_;
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/fake_cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698