| Index: chromeos/dbus/fake_biod_record_client.h
|
| diff --git a/chromeos/dbus/fake_biod_record_client.h b/chromeos/dbus/fake_biod_record_client.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..55444acee3983f6bdb71b004924d69abfc93397f
|
| --- /dev/null
|
| +++ b/chromeos/dbus/fake_biod_record_client.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROMEOS_DBUS_FAKE_BIOD_RECORD_CLIENT_H_
|
| +#define CHROMEOS_DBUS_FAKE_BIOD_RECORD_CLIENT_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "chromeos/chromeos_export.h"
|
| +#include "chromeos/dbus/biod_record_client.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +class CHROMEOS_EXPORT FakeBiodRecordClient : public BiodRecordClient {
|
| + public:
|
| + FakeBiodRecordClient();
|
| + ~FakeBiodRecordClient() override;
|
| +
|
| + // BiodRecordClient overrides
|
| + void Init(dbus::Bus* bus) override;
|
| + void SetLabel(const dbus::ObjectPath& record_path,
|
| + const std::string& label) override;
|
| + void Remove(const dbus::ObjectPath& record_path) override;
|
| + void GetLabel(const dbus::ObjectPath& record_path,
|
| + const StringCallback& callback) override;
|
| + std::string GetLabelBlocking(const dbus::ObjectPath& record_path) override;
|
| +
|
| + private:
|
| + // Note: This should remain the last member so it'll be destroyed and
|
| + // invalidate its weak pointers before any other members are destroyed.
|
| + base::WeakPtrFactory<FakeBiodRecordClient> weak_ptr_factory_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(FakeBiodRecordClient);
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROMEOS_DBUS_FAKE_BIOD_RECORD_CLIENT_H_
|
|
|