Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chromeos / dbus / fake_easy_unlock_client.h
index ddb0b92..046689d 100644 (file)
@@ -14,6 +14,11 @@ namespace chromeos {
 // A fake implemetation of EasyUnlockClient.
 class CHROMEOS_EXPORT FakeEasyUnlockClient : public EasyUnlockClient {
  public:
+  // Tests if the provided keys belong to the same (fake) EC P256 key pair
+  // generated by |this|.
+  static bool IsEcP256KeyPair(const std::string& private_key,
+                              const std::string& public_key);
+
   FakeEasyUnlockClient();
   virtual ~FakeEasyUnlockClient();
 
@@ -24,21 +29,15 @@ class CHROMEOS_EXPORT FakeEasyUnlockClient : public EasyUnlockClient {
                                        const std::string& public_key,
                                        const DataCallback& callback) OVERRIDE;
   virtual void CreateSecureMessage(const std::string& payload,
-                                   const std::string& secret_key,
-                                   const std::string& associated_data,
-                                   const std::string& public_metadata,
-                                   const std::string& verification_key_id,
-                                   const std::string& encryption_type,
-                                   const std::string& signature_type,
+                                   const CreateSecureMessageOptions& options,
                                    const DataCallback& callback) OVERRIDE;
   virtual void UnwrapSecureMessage(const std::string& message,
-                                   const std::string& secret_key,
-                                   const std::string& associated_data,
-                                   const std::string& encryption_type,
-                                   const std::string& signature_type,
+                                   const UnwrapSecureMessageOptions& options,
                                    const DataCallback& callback) OVERRIDE;
 
  private:
+  int generated_keys_count_;
+
   DISALLOW_COPY_AND_ASSIGN(FakeEasyUnlockClient);
 };