summaryrefslogtreecommitdiff
path: root/static_ip_parameters_unittest.cc
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2015-06-16 13:13:10 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-18 05:08:13 +0000
commit3b30ca58d13cf66b75ba0729b222ddc42ae68b33 (patch)
tree6bf3de4deda05a202654e8096f9afc31a864363c /static_ip_parameters_unittest.cc
parent1e006c610db980bca337121134d2ba54497b7a59 (diff)
downloadshill-3b30ca58d13cf66b75ba0729b222ddc42ae68b33.tar.gz
shill: Top-level unit tests: Switch pointer/ref spacing
Switch to Chrome style spacing. BUG=chromium:501026 TEST=Unit tests Change-Id: I86c072b89281e0de18928b47860b99d779af061a Reviewed-on: https://chromium-review.googlesource.com/278037 Reviewed-by: Rebecca Silberstein <silberst@chromium.org> Commit-Queue: Paul Stewart <pstew@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org>
Diffstat (limited to 'static_ip_parameters_unittest.cc')
-rw-r--r--static_ip_parameters_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/static_ip_parameters_unittest.cc b/static_ip_parameters_unittest.cc
index b25ae48e..9bceb5ea 100644
--- a/static_ip_parameters_unittest.cc
+++ b/static_ip_parameters_unittest.cc
@@ -51,7 +51,7 @@ class StaticIpParametersTest : public Test {
}
// Modify an IP address string in some predictable way. There's no need
// for the output string to be valid from a networking perspective.
- string VersionedAddress(const string &address, int version) {
+ string VersionedAddress(const string& address, int version) {
string returned_address = address;
CHECK(returned_address.length());
returned_address[returned_address.length() - 1] += version;
@@ -71,8 +71,8 @@ class StaticIpParametersTest : public Test {
EXPECT_EQ(kPrefixLen + version, ipconfig_props_.subnet_prefix);
}
void ExpectPopulatedIPConfig() { ExpectPopulatedIPConfigWithVersion(0); }
- void ExpectPropertiesWithVersion(PropertyStore *store,
- const string &property_prefix,
+ void ExpectPropertiesWithVersion(PropertyStore* store,
+ const string& property_prefix,
int version) {
string string_value;
Error unused_error;
@@ -103,7 +103,7 @@ class StaticIpParametersTest : public Test {
&unused_error));
EXPECT_EQ(kPrefixLen + version, int_value);
}
- void ExpectProperties(PropertyStore *store, const string &property_prefix) {
+ void ExpectProperties(PropertyStore* store, const string& property_prefix) {
ExpectPropertiesWithVersion(store, property_prefix, 0);
}
void PopulateIPConfig() {
@@ -115,7 +115,7 @@ class StaticIpParametersTest : public Test {
ipconfig_props_.peer_address = kPeerAddress;
ipconfig_props_.subnet_prefix = kPrefixLen;
}
- void SetStaticPropertiesWithVersion(PropertyStore *store, int version) {
+ void SetStaticPropertiesWithVersion(PropertyStore* store, int version) {
Error error;
store->SetStringProperty(
"StaticIP.Address", VersionedAddress(kAddress, version), &error);
@@ -134,10 +134,10 @@ class StaticIpParametersTest : public Test {
&error);
store->SetInt32Property("StaticIP.Prefixlen", kPrefixLen + version, &error);
}
- void SetStaticProperties(PropertyStore *store) {
+ void SetStaticProperties(PropertyStore* store) {
SetStaticPropertiesWithVersion(store, 0);
}
- void SetStaticDictPropertiesWithVersion(PropertyStore *store, int version) {
+ void SetStaticDictPropertiesWithVersion(PropertyStore* store, int version) {
KeyValueStore args;
args.SetString(kAddressProperty, VersionedAddress(kAddress, version));
args.SetString(kGatewayProperty, VersionedAddress(kGateway, version));