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

Unified Diff: components/cryptauth/mock_local_device_data_provider.cc

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
« no previous file with comments | « components/cryptauth/mock_local_device_data_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cryptauth/mock_local_device_data_provider.cc
diff --git a/chromeos/components/tether/mock_local_device_data_provider.cc b/components/cryptauth/mock_local_device_data_provider.cc
similarity index 80%
rename from chromeos/components/tether/mock_local_device_data_provider.cc
rename to components/cryptauth/mock_local_device_data_provider.cc
index 736e620efc7ec4463d50f7e381fed3bdfc2ee065..be56d0b9ad4a9d79b18bfad8d30bf61559857d25 100644
--- a/chromeos/components/tether/mock_local_device_data_provider.cc
+++ b/components/cryptauth/mock_local_device_data_provider.cc
@@ -2,15 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromeos/components/tether/mock_local_device_data_provider.h"
+#include "components/cryptauth/mock_local_device_data_provider.h"
#include "components/cryptauth/cryptauth_device_manager.h"
#include "components/cryptauth/cryptauth_enrollment_manager.h"
#include "components/cryptauth/proto/cryptauth_api.pb.h"
-namespace chromeos {
-
-namespace tether {
+namespace cryptauth {
MockLocalDeviceDataProvider::MockLocalDeviceDataProvider()
: LocalDeviceDataProvider(nullptr /* cryptauth_service */) {}
@@ -27,7 +25,7 @@ void MockLocalDeviceDataProvider::SetPublicKey(
}
void MockLocalDeviceDataProvider::SetBeaconSeeds(
- std::unique_ptr<std::vector<cryptauth::BeaconSeed>> beacon_seeds) {
+ std::unique_ptr<std::vector<BeaconSeed>> beacon_seeds) {
if (beacon_seeds) {
beacon_seeds_ = std::move(beacon_seeds);
} else {
@@ -37,7 +35,7 @@ void MockLocalDeviceDataProvider::SetBeaconSeeds(
bool MockLocalDeviceDataProvider::GetLocalDeviceData(
std::string* public_key_out,
- std::vector<cryptauth::BeaconSeed>* beacon_seeds_out) const {
+ std::vector<BeaconSeed>* beacon_seeds_out) const {
bool success = false;
if (public_key_ && public_key_out) {
@@ -53,6 +51,4 @@ bool MockLocalDeviceDataProvider::GetLocalDeviceData(
return success;
}
-} // namespace tether
-
-} // namespace chromeos
+} // namespace cryptauth
« no previous file with comments | « components/cryptauth/mock_local_device_data_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698