// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_ASH_COMPONENTS_SYNC_WIFI_TEST_DATA_GENERATOR_H_
#define CHROMEOS_ASH_COMPONENTS_SYNC_WIFI_TEST_DATA_GENERATOR_H_
#include "components/sync/protocol/wifi_configuration_specifics.pb.h"
namespace ash::sync_wifi {
class NetworkIdentifier;
// Creates a NetworkIdentifier with PSK security for a hex-encoded |ssid|.
NetworkIdentifier GeneratePskNetworkId(const std::string& ssid);
// Creates a NetworkIdentifier with PSK security for a |ssid|. By removing the
// hexencoding, we can test for invalid hex strings.
NetworkIdentifier GenerateInvalidPskNetworkId(const std::string& ssid);
// Creates a proto with default values and sets the hex_ssid and security_type
// based on the input |id|.
sync_pb::WifiConfigurationSpecifics GenerateTestWifiSpecifics(
const NetworkIdentifier& id,
const std::string& passphrase = "passphrase",
double timestamp = 1);
} // namespace ash::sync_wifi
#endif // CHROMEOS_ASH_COMPONENTS_SYNC_WIFI_TEST_DATA_GENERATOR_H_