Commit 60366cee authored by James Hawkins's avatar James Hawkins Committed by Commit Bot

CryptAuth: Remove unused FakeCryptAuthDeviceIdProvider.

R=khorimoto@chromium.org

Bug: 899324
Test: none
Change-Id: I764a9dc6f2d38f896a8d7ec41f15a834e5bbba85
Reviewed-on: https://chromium-review.googlesource.com/c/1330842Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Commit-Queue: James Hawkins <jhawkins@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607271}
parent ce58bfa0
...@@ -136,8 +136,6 @@ static_library("test_support") { ...@@ -136,8 +136,6 @@ static_library("test_support") {
"fake_background_eid_generator.h", "fake_background_eid_generator.h",
"fake_connection.cc", "fake_connection.cc",
"fake_connection.h", "fake_connection.h",
"fake_cryptauth_device_id_provider.cc",
"fake_cryptauth_device_id_provider.h",
"fake_cryptauth_device_manager.cc", "fake_cryptauth_device_manager.cc",
"fake_cryptauth_device_manager.h", "fake_cryptauth_device_manager.h",
"fake_cryptauth_enrollment_manager.cc", "fake_cryptauth_enrollment_manager.cc",
......
// Copyright 2018 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.
#include "components/cryptauth/fake_cryptauth_device_id_provider.h"
namespace cryptauth {
FakeCryptAuthDeviceIdProvider::FakeCryptAuthDeviceIdProvider(
const std::string& device_id)
: device_id_(device_id) {}
FakeCryptAuthDeviceIdProvider::~FakeCryptAuthDeviceIdProvider() = default;
std::string FakeCryptAuthDeviceIdProvider::GetDeviceId() const {
return device_id_;
}
} // namespace cryptauth
// Copyright 2018 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 COMPONENTS_CRYPTAUTH_FAKE_CRYPTAUTH_DEVICE_ID_PROVIDER_H_
#define COMPONENTS_CRYPTAUTH_FAKE_CRYPTAUTH_DEVICE_ID_PROVIDER_H_
#include "components/cryptauth/cryptauth_device_id_provider.h"
namespace cryptauth {
// Test implementation for CryptAuthDeviceIdProvider.
class FakeCryptAuthDeviceIdProvider : public CryptAuthDeviceIdProvider {
public:
FakeCryptAuthDeviceIdProvider(const std::string& device_id);
~FakeCryptAuthDeviceIdProvider() override;
// CryptAuthDeviceIdProvider:
std::string GetDeviceId() const override;
private:
const std::string device_id_;
DISALLOW_COPY_AND_ASSIGN(FakeCryptAuthDeviceIdProvider);
};
} // namespace cryptauth
#endif // COMPONENTS_CRYPTAUTH_FAKE_CRYPTAUTH_DEVICE_ID_PROVIDER_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment