armansito | f2e1635 | 2014-09-09 06:47:29 +0900 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "dbus/util.h" |
| 6 | #include "testing/gtest/include/gtest/gtest.h" |
| 7 | |
| 8 | namespace dbus { |
| 9 | |
| 10 | TEST(UtilTest, GetAbsoluteMemberName) { |
| 11 | EXPECT_EQ("InterfaceName.MemberName", |
| 12 | GetAbsoluteMemberName("InterfaceName", "MemberName")); |
| 13 | EXPECT_EQ(".", GetAbsoluteMemberName("", "")); |
| 14 | } |
| 15 | |
| 16 | } // namespace dbus |