Index: dbus/end_to_end_sync_unittest.cc |
diff --git a/dbus/end_to_end_sync_unittest.cc b/dbus/end_to_end_sync_unittest.cc |
index 1167d96650b3b536a3bc08154ae8663f2452859b..47dc9b1207fefc7fc3fb597ad949ea42a4376726 100644 |
--- a/dbus/end_to_end_sync_unittest.cc |
+++ b/dbus/end_to_end_sync_unittest.cc |
@@ -35,7 +35,7 @@ class EndToEndSyncTest : public testing::Test { |
client_bus_options.connection_type = Bus::PRIVATE; |
client_bus_ = new Bus(client_bus_options); |
object_proxy_ = client_bus_->GetObjectProxy( |
- "org.chromium.TestService", |
+ test_service_->service_name(), |
ObjectPath("/org/chromium/TestObject")); |
ASSERT_FALSE(client_bus_->HasDBusThread()); |
} |
@@ -112,7 +112,7 @@ TEST_F(EndToEndSyncTest, InvalidObjectPath) { |
const ObjectPath invalid_object_path("/org/chromium/TestObject/"); |
// Replace object proxy with new one. |
- object_proxy_ = client_bus_->GetObjectProxy("org.chromium.TestService", |
+ object_proxy_ = client_bus_->GetObjectProxy(test_service_->service_name(), |
invalid_object_path); |
MethodCall method_call("org.chromium.TestInterface", "Echo"); |