1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROMEOS_DBUS_FAKE_EASY_UNLOCK_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_EASY_UNLOCK_CLIENT_H_
10 #include "chromeos/dbus/easy_unlock_client.h"
14 // A fake implemetation of EasyUnlockClient.
15 class CHROMEOS_EXPORT FakeEasyUnlockClient
: public EasyUnlockClient
{
17 FakeEasyUnlockClient();
18 virtual ~FakeEasyUnlockClient();
20 // EasyUnlockClient overrides
21 virtual void Init(dbus::Bus
* bus
) OVERRIDE
;
22 virtual void GenerateEcP256KeyPair(const KeyPairCallback
& callback
) OVERRIDE
;
23 virtual void PerformECDHKeyAgreement(const std::string
& private_key
,
24 const std::string
& public_key
,
25 const DataCallback
& callback
) OVERRIDE
;
26 virtual void CreateSecureMessage(const std::string
& payload
,
27 const std::string
& secret_key
,
28 const std::string
& associated_data
,
29 const std::string
& public_metadata
,
30 const std::string
& verification_key_id
,
31 const std::string
& encryption_type
,
32 const std::string
& signature_type
,
33 const DataCallback
& callback
) OVERRIDE
;
34 virtual void UnwrapSecureMessage(const std::string
& message
,
35 const std::string
& secret_key
,
36 const std::string
& associated_data
,
37 const std::string
& encryption_type
,
38 const std::string
& signature_type
,
39 const DataCallback
& callback
) OVERRIDE
;
42 DISALLOW_COPY_AND_ASSIGN(FakeEasyUnlockClient
);
45 } // namespace chromeos
47 #endif // CHROMEOS_DBUS_FAKE_EASY_UNLOCK_CLIENT_H_