blob: 297868fe0f0b38a4a71389e083d9e0d2acbb0a0c [file] [log] [blame]
// 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.
#include "chromeos/components/tether/proto/tether.pb.h"
namespace chromeos {
namespace tether {
namespace proto_test_util {
// Pass these constants to CreateTestDeviceStatus() to create a proto object
// which does not have the associated field set.
const char kDoNotSetStringField[] = "doNotSetField";
const int kDoNotSetIntField = -100;
} // namespace proto_test_util
// Creates a DeviceStatus object using the parameters provided. If
// |kDoNotSetStringField| or |kDoNotSetIntField| are passed, these fields will
// not be set in the output.
DeviceStatus CreateTestDeviceStatus(const std::string& cell_provider_name,
int battery_percentage,
int connection_strength);
// Creates a DeviceStatus object using fake field values.
DeviceStatus CreateDeviceStatusWithFakeFields();
} // namespace tether
} // namespace chromeos