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

Unified Diff: chromeos/network/network_configuration_handler_unittest.cc

Issue 299403012: Clean up shill fake implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/network/network_configuration_handler_unittest.cc
diff --git a/chromeos/network/network_configuration_handler_unittest.cc b/chromeos/network/network_configuration_handler_unittest.cc
index f181848272fcdc7daeb0aab9c501d0c93e3eb376..e0161b65000b3407b15f06587a588ddbbc1b79c0 100644
--- a/chromeos/network/network_configuration_handler_unittest.cc
+++ b/chromeos/network/network_configuration_handler_unittest.cc
@@ -506,7 +506,7 @@ class NetworkConfigurationHandlerStubTest : public testing::Test {
TEST_F(NetworkConfigurationHandlerStubTest, StubSetAndClearProperties) {
// TODO(stevenjb): Remove dependency on default Stub service.
- const std::string service_path("wifi1");
+ const std::string service_path("/service/wifi1");
const std::string test_identity("test_identity");
const std::string test_passphrase("test_passphrase");
@@ -558,7 +558,7 @@ TEST_F(NetworkConfigurationHandlerStubTest, StubSetAndClearProperties) {
TEST_F(NetworkConfigurationHandlerStubTest, StubGetNameFromWifiHex) {
// TODO(stevenjb): Remove dependency on default Stub service.
- const std::string service_path("wifi1");
+ const std::string service_path("/service/wifi1");
std::string wifi_hex = "5468697320697320484558205353494421";
std::string expected_name = "This is HEX SSID!";
@@ -593,7 +593,7 @@ TEST_F(NetworkConfigurationHandlerStubTest, StubGetNameFromWifiHex) {
}
TEST_F(NetworkConfigurationHandlerStubTest, StubCreateConfiguration) {
- const std::string service_path("test_wifi");
+ const std::string service_path("/service/test_wifi");
base::DictionaryValue properties;
shill_property_util::SetSSID(service_path, &properties);
properties.SetStringWithoutPathExpansion(shill::kNameProperty, service_path);

Powered by Google App Engine
This is Rietveld 408576698