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

Unified Diff: chromeos/dbus/dbus_client_bundle_unittest.cc

Issue 2350543002: chromeos; Remove unused switch --dbus-unstub-clients / --dbus-real-clients (Closed)
Patch Set: rebase again Created 4 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 | « chromeos/dbus/cros_disks_client.h ('k') | chromeos/dbus/dbus_client_implementation_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/dbus_client_bundle_unittest.cc
diff --git a/chromeos/dbus/dbus_client_bundle_unittest.cc b/chromeos/dbus/dbus_client_bundle_unittest.cc
deleted file mode 100644
index 109498f1964e48e6de54c49e29bff637abb9680b..0000000000000000000000000000000000000000
--- a/chromeos/dbus/dbus_client_bundle_unittest.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// 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 "chromeos/dbus/dbus_client_types.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace chromeos {
-namespace {
-
-// Makes mask operations more readable.
-DBusClientTypeMask AsClientTypeMask(DBusClientType type) {
- return static_cast<DBusClientTypeMask>(type);
-}
-
-} // namespace
-
-TEST(DBusClientBundleTest, RealClientsFlagParser) {
- EXPECT_EQ(AsClientTypeMask(DBusClientType::NONE),
- ParseDBusRealClientsList("foo"));
-
- EXPECT_EQ(AsClientTypeMask(DBusClientType::BLUETOOTH),
- ParseDBusRealClientsList("BLUETOOTH"));
-
- EXPECT_EQ(AsClientTypeMask(DBusClientType::BLUETOOTH),
- ParseDBusRealClientsList("bluetooth"));
-
- EXPECT_EQ(AsClientTypeMask(DBusClientType::CRAS) |
- AsClientTypeMask(DBusClientType::CROS_DISKS) |
- AsClientTypeMask(DBusClientType::DEBUG_DAEMON) |
- AsClientTypeMask(DBusClientType::SHILL),
- ParseDBusRealClientsList("Cras,Cros_Disks,debug_daemon,Shill"));
-
- EXPECT_EQ(AsClientTypeMask(DBusClientType::CRAS) |
- AsClientTypeMask(DBusClientType::CROS_DISKS) |
- AsClientTypeMask(DBusClientType::DEBUG_DAEMON) |
- AsClientTypeMask(DBusClientType::SHILL),
- ParseDBusRealClientsList("foo,Cras,Cros_Disks,debug_daemon,Shill"));
-}
-
-} // namespace chromeos
« no previous file with comments | « chromeos/dbus/cros_disks_client.h ('k') | chromeos/dbus/dbus_client_implementation_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698