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

Unified Diff: dbus/util_unittest.cc

Issue 552433002: dbus: Introduce util_unittest.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/dbus.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/util_unittest.cc
diff --git a/dbus/util_unittest.cc b/dbus/util_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4bf6efa2aee585f5220b7510869ed903e350fa8d
--- /dev/null
+++ b/dbus/util_unittest.cc
@@ -0,0 +1,16 @@
+// Copyright 2014 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 "dbus/util.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace dbus {
+
+TEST(UtilTest, GetAbsoluteMemberName) {
+ EXPECT_EQ("InterfaceName.MemberName",
+ GetAbsoluteMemberName("InterfaceName", "MemberName"));
+ EXPECT_EQ(".", GetAbsoluteMemberName("", ""));
+}
+
+} // namespace dbus
« no previous file with comments | « dbus/dbus.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698