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

Unified Diff: content/browser/geolocation/wifi_data_provider_linux_unittest.cc

Issue 9378039: dbus: add ObjectPath type (Closed) Base URL: http://git.chromium.org/git/chromium/src@master
Patch Set: added inequality operator Created 8 years, 10 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
Index: content/browser/geolocation/wifi_data_provider_linux_unittest.cc
diff --git a/content/browser/geolocation/wifi_data_provider_linux_unittest.cc b/content/browser/geolocation/wifi_data_provider_linux_unittest.cc
index e5a39b96a3196ed2c7408fe5db795c8b788d70e8..95eebe98348a6c103681e71206cb50295a8eeb17 100644
--- a/content/browser/geolocation/wifi_data_provider_linux_unittest.cc
+++ b/content/browser/geolocation/wifi_data_provider_linux_unittest.cc
@@ -11,6 +11,7 @@
#include "dbus/message.h"
#include "dbus/mock_bus.h"
#include "dbus/mock_object_proxy.h"
+#include "dbus/object_path.h"
#include "dbus/object_proxy.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -115,7 +116,7 @@ class GeolocationWifiDataProviderLinuxTest : public testing::Test {
if (method_call->GetInterface() == "org.freedesktop.NetworkManager" &&
method_call->GetMember() == "GetDevices") {
// The list of devices is asked. Return the object path.
- std::vector<std::string> object_paths;
+ std::vector<dbus::ObjectPath> object_paths;
object_paths.push_back("/org/freedesktop/NetworkManager/Devices/0");
dbus::Response* response = dbus::Response::CreateEmpty();
@@ -152,7 +153,7 @@ class GeolocationWifiDataProviderLinuxTest : public testing::Test {
// The list of access points is asked. Return the object path.
dbus::Response* response = dbus::Response::CreateEmpty();
dbus::MessageWriter writer(response);
- std::vector<std::string> object_paths;
+ std::vector<dbus::ObjectPath> object_paths;
object_paths.push_back("/org/freedesktop/NetworkManager/AccessPoint/0");
writer.AppendArrayOfObjectPaths(object_paths);
return response;

Powered by Google App Engine
This is Rietveld 408576698