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

Unified Diff: chrome/browser/chromeos/dbus/introspectable_client_unittest.cc

Issue 9839064: chromeos: Separate XML parsing code from IntrospectableClient (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 9 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 | « chrome/browser/chromeos/dbus/introspectable_client.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dbus/introspectable_client_unittest.cc
diff --git a/chrome/browser/chromeos/dbus/introspectable_client_unittest.cc b/chrome/browser/chromeos/dbus/introspectable_client_unittest.cc
deleted file mode 100644
index 2600e69b3cc7ea818bb09e436269613bafb0870e..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/dbus/introspectable_client_unittest.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2012 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 "chrome/browser/chromeos/dbus/introspectable_client.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace {
-
-const char kXmlData[] =
-"<!DOCTYPE node PUBLIC "
-"\"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\" "
-"\"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\">\n"
-"<node>\n"
-" <interface name=\"org.freedesktop.DBus.Introspectable\">\n"
-" <method name=\"Introspect\">\n"
-" <arg type=\"s\" direction=\"out\"/>\n"
-" </method>\n"
-" </interface>\n"
-" <interface name=\"org.bluez.Device\">\n"
-" <method name=\"GetProperties\">\n"
-" <arg type=\"a{sv}\" direction=\"out\"/>\n"
-" </method>\n"
-" <method name=\"SetProperty\">\n"
-" <arg type=\"s\" direction=\"in\"/>\n"
-" <arg type=\"v\" direction=\"in\"/>\n"
-" </method>\n"
-" <method name=\"DiscoverServices\">\n"
-" <arg type=\"s\" direction=\"in\"/>\n"
-" <arg type=\"a{us}\" direction=\"out\"/>\n"
-" </method>\n"
-" <method name=\"CancelDiscovery\"/>\n"
-" <method name=\"Disconnect\"/>\n"
-" <signal name=\"PropertyChanged\">\n"
-" <arg type=\"s\"/>\n"
-" <arg type=\"v\"/>\n"
-" </signal>\n"
-" <signal name=\"DisconnectRequested\"/>\n"
-" </interface>\n"
-" <interface name=\"org.bluez.Input\">\n"
-" <method name=\"Connect\"/>\n"
-" <method name=\"Disconnect\"/>\n"
-" <method name=\"GetProperties\">\n"
-" <arg type=\"a{sv}\" direction=\"out\"/>\n"
-" </method>\n"
-" <signal name=\"PropertyChanged\">\n"
-" <arg type=\"s\"/>\n"
-" <arg type=\"v\"/>\n"
-" </signal>\n"
-" </interface>\n"
-"</node>";
-
-} // namespace
-
-namespace chromeos {
-
-TEST(IntrospectableTest, GetInterfacesFromXmlData) {
- std::vector<std::string> interfaces =
- IntrospectableClient::GetInterfacesFromXmlData(kXmlData);
-
- ASSERT_EQ(3U, interfaces.size());
- EXPECT_EQ("org.freedesktop.DBus.Introspectable", interfaces[0]);
- EXPECT_EQ("org.bluez.Device", interfaces[1]);
- EXPECT_EQ("org.bluez.Input", interfaces[2]);
-}
-
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/dbus/introspectable_client.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698