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

Unified Diff: chromeos/components/tether/mock_local_device_data_provider.h

Issue 2951303002: [CrOS Tether] Move LocalDeviceDataProvider from //chromeos/components/tether to //components/crypta… (Closed)
Patch Set: Rebased. Created 3 years, 6 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
Index: chromeos/components/tether/mock_local_device_data_provider.h
diff --git a/chromeos/components/tether/mock_local_device_data_provider.h b/chromeos/components/tether/mock_local_device_data_provider.h
deleted file mode 100644
index fa1a6c5c907cad73703b3ec0c77f25eac182393c..0000000000000000000000000000000000000000
--- a/chromeos/components/tether/mock_local_device_data_provider.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2016 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_COMPONENTS_TETHER_MOCK_LOCAL_DEVICE_DATA_PROVIDER_H_
-#define CHROMEOS_COMPONENTS_TETHER_MOCK_LOCAL_DEVICE_DATA_PROVIDER_H_
-
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/ptr_util.h"
-#include "chromeos/components/tether/local_device_data_provider.h"
-
-namespace cryptauth {
-class BeaconSeed;
-}
-
-namespace chromeos {
-
-namespace tether {
-
-// Test double for LocalDeviceDataProvider.
-class MockLocalDeviceDataProvider : public LocalDeviceDataProvider {
- public:
- MockLocalDeviceDataProvider();
- ~MockLocalDeviceDataProvider() override;
-
- void SetPublicKey(std::unique_ptr<std::string> public_key);
- void SetBeaconSeeds(
- std::unique_ptr<std::vector<cryptauth::BeaconSeed>> beacon_seeds);
-
- // LocalDeviceDataProvider:
- bool GetLocalDeviceData(
- std::string* public_key_out,
- std::vector<cryptauth::BeaconSeed>* beacon_seeds_out) const override;
-
- private:
- std::unique_ptr<std::string> public_key_;
- std::unique_ptr<std::vector<cryptauth::BeaconSeed>> beacon_seeds_;
-
- DISALLOW_COPY_AND_ASSIGN(MockLocalDeviceDataProvider);
-};
-
-} // namespace tether
-
-} // namespace chromeos
-
-#endif // CHROMEOS_COMPONENTS_TETHER_MOCK_LOCAL_DEVICE_DATA_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698