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

Unified Diff: dbus/end_to_end_sync_unittest.cc

Issue 1559873005: dbus: Use randomly generated string as a TestService's service name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « dbus/end_to_end_async_unittest.cc ('k') | dbus/object_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « dbus/end_to_end_async_unittest.cc ('k') | dbus/object_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698