OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/dbus/dbus_client_bundle.h" | 5 #include "chromeos/dbus/dbus_client_bundle.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
10 | 9 |
11 namespace chromeos { | 10 namespace chromeos { |
12 | 11 |
13 TEST(DBusClientBundleTest, UnstubFlagParser) { | 12 TEST(DBusClientBundleTest, UnstubFlagParser) { |
14 EXPECT_EQ(0, DBusClientBundle::ParseUnstubList("foo")); | 13 EXPECT_EQ(0, DBusClientBundle::ParseUnstubList("foo")); |
15 | 14 |
16 EXPECT_EQ(DBusClientBundle::BLUETOOTH, | 15 EXPECT_EQ(DBusClientBundle::BLUETOOTH, |
17 DBusClientBundle::ParseUnstubList("BLUETOOTH")); | 16 DBusClientBundle::ParseUnstubList("BLUETOOTH")); |
(...skipping 12 matching lines...) Expand all Loading... |
30 EXPECT_EQ( | 29 EXPECT_EQ( |
31 DBusClientBundle::CRAS | | 30 DBusClientBundle::CRAS | |
32 DBusClientBundle::CROS_DISKS | | 31 DBusClientBundle::CROS_DISKS | |
33 DBusClientBundle::DEBUG_DAEMON | | 32 DBusClientBundle::DEBUG_DAEMON | |
34 DBusClientBundle::SHILL, | 33 DBusClientBundle::SHILL, |
35 DBusClientBundle::ParseUnstubList( | 34 DBusClientBundle::ParseUnstubList( |
36 "foo,Cras,Cros_Disks,debug_daemon,Shill")); | 35 "foo,Cras,Cros_Disks,debug_daemon,Shill")); |
37 } | 36 } |
38 | 37 |
39 } // namespace chromeos | 38 } // namespace chromeos |
OLD | NEW |