summaryrefslogtreecommitdiffstats
path: root/chromeos
diff options
context:
space:
mode:
authorharuki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 22:19:07 +0000
committerharuki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 22:19:07 +0000
commit63f20cbfef1ea6a4cef02672fd261ee318e5b188 (patch)
treee412aada2e4e666b4b07dc70a028e27d08668246 /chromeos
parent5dce7657fce511cea70a19423a0d92f48edd2c1d (diff)
downloadchromium_src-63f20cbfef1ea6a4cef02672fd261ee318e5b188.zip
chromium_src-63f20cbfef1ea6a4cef02672fd261ee318e5b188.tar.gz
chromium_src-63f20cbfef1ea6a4cef02672fd261ee318e5b188.tar.bz2
dbus: Remove unused MockExperimentalBluetooth*Client
BUG=233121 TEST=unittests Review URL: https://chromiumcodereview.appspot.com/14037011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195312 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos')
-rw-r--r--chromeos/chromeos.gyp8
-rw-r--r--chromeos/dbus/mock_dbus_thread_manager.cc34
-rw-r--r--chromeos/dbus/mock_dbus_thread_manager.h28
-rw-r--r--chromeos/dbus/mock_experimental_bluetooth_adapter_client.cc25
-rw-r--r--chromeos/dbus/mock_experimental_bluetooth_adapter_client.h54
-rw-r--r--chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.cc15
-rw-r--r--chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.h35
-rw-r--r--chromeos/dbus/mock_experimental_bluetooth_device_client.cc25
-rw-r--r--chromeos/dbus/mock_experimental_bluetooth_device_client.h65
-rw-r--r--chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.cc15
-rw-r--r--chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h33
11 files changed, 0 insertions, 337 deletions
diff --git a/chromeos/chromeos.gyp b/chromeos/chromeos.gyp
index 5f9df89..2122be9 100644
--- a/chromeos/chromeos.gyp
+++ b/chromeos/chromeos.gyp
@@ -327,14 +327,6 @@
'dbus/mock_dbus_thread_manager.h',
'dbus/mock_debug_daemon_client.cc',
'dbus/mock_debug_daemon_client.h',
- 'dbus/mock_experimental_bluetooth_adapter_client.cc',
- 'dbus/mock_experimental_bluetooth_adapter_client.h',
- 'dbus/mock_experimental_bluetooth_agent_manager_client.cc',
- 'dbus/mock_experimental_bluetooth_agent_manager_client.h',
- 'dbus/mock_experimental_bluetooth_device_client.cc',
- 'dbus/mock_experimental_bluetooth_device_client.h',
- 'dbus/mock_experimental_bluetooth_profile_manager_client.cc',
- 'dbus/mock_experimental_bluetooth_profile_manager_client.h',
'dbus/mock_shill_device_client.cc',
'dbus/mock_shill_device_client.h',
'dbus/mock_shill_ipconfig_client.cc',
diff --git a/chromeos/dbus/mock_dbus_thread_manager.cc b/chromeos/dbus/mock_dbus_thread_manager.cc
index c4970f4..5c6584a 100644
--- a/chromeos/dbus/mock_dbus_thread_manager.cc
+++ b/chromeos/dbus/mock_dbus_thread_manager.cc
@@ -20,10 +20,6 @@
#include "chromeos/dbus/mock_cros_disks_client.h"
#include "chromeos/dbus/mock_cryptohome_client.h"
#include "chromeos/dbus/mock_debug_daemon_client.h"
-#include "chromeos/dbus/mock_experimental_bluetooth_adapter_client.h"
-#include "chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.h"
-#include "chromeos/dbus/mock_experimental_bluetooth_device_client.h"
-#include "chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h"
#include "chromeos/dbus/mock_shill_device_client.h"
#include "chromeos/dbus/mock_shill_ipconfig_client.h"
#include "chromeos/dbus/mock_shill_manager_client.h"
@@ -58,14 +54,6 @@ MockDBusThreadManager::MockDBusThreadManager()
mock_cros_disks_client_(new MockCrosDisksClient),
mock_cryptohome_client_(new MockCryptohomeClient),
mock_debugdaemon_client_(new MockDebugDaemonClient),
- mock_experimental_bluetooth_adapter_client_(
- new MockExperimentalBluetoothAdapterClient),
- mock_experimental_bluetooth_agent_manager_client_(
- new MockExperimentalBluetoothAgentManagerClient),
- mock_experimental_bluetooth_device_client_(
- new MockExperimentalBluetoothDeviceClient),
- mock_experimental_bluetooth_profile_manager_client_(
- new MockExperimentalBluetoothProfileManagerClient),
mock_shill_device_client_(new MockShillDeviceClient),
mock_shill_ipconfig_client_(new MockShillIPConfigClient),
mock_shill_manager_client_(new MockShillManagerClient),
@@ -105,16 +93,6 @@ MockDBusThreadManager::MockDBusThreadManager()
.WillRepeatedly(Return(mock_cryptohome_client()));
EXPECT_CALL(*this, GetDebugDaemonClient())
.WillRepeatedly(Return(mock_debugdaemon_client()));
- EXPECT_CALL(*this, GetExperimentalBluetoothAdapterClient())
- .WillRepeatedly(Return(mock_experimental_bluetooth_adapter_client()));
- EXPECT_CALL(*this, GetExperimentalBluetoothAgentManagerClient())
- .WillRepeatedly(Return(
- mock_experimental_bluetooth_agent_manager_client()));
- EXPECT_CALL(*this, GetExperimentalBluetoothDeviceClient())
- .WillRepeatedly(Return(mock_experimental_bluetooth_device_client()));
- EXPECT_CALL(*this, GetExperimentalBluetoothProfileManagerClient())
- .WillRepeatedly(Return(
- mock_experimental_bluetooth_profile_manager_client()));
EXPECT_CALL(*this, GetShillDeviceClient())
.WillRepeatedly(Return(mock_shill_device_client()));
EXPECT_CALL(*this, GetShillIPConfigClient())
@@ -216,18 +194,6 @@ MockDBusThreadManager::MockDBusThreadManager()
.Times(AnyNumber());
EXPECT_CALL(*mock_bluetooth_node_client_.get(), RemoveObserver(_))
.Times(AnyNumber());
- EXPECT_CALL(*mock_experimental_bluetooth_adapter_client_.get(),
- AddObserver(_))
- .Times(AnyNumber());
- EXPECT_CALL(*mock_experimental_bluetooth_adapter_client_.get(),
- RemoveObserver(_))
- .Times(AnyNumber());
- EXPECT_CALL(*mock_experimental_bluetooth_device_client_.get(),
- AddObserver(_))
- .Times(AnyNumber());
- EXPECT_CALL(*mock_experimental_bluetooth_device_client_.get(),
- RemoveObserver(_))
- .Times(AnyNumber());
// Called from PowerMenuButton ctor.
EXPECT_CALL(*mock_power_manager_client_.get(), RequestStatusUpdate(_))
diff --git a/chromeos/dbus/mock_dbus_thread_manager.h b/chromeos/dbus/mock_dbus_thread_manager.h
index 7d1982e..3f92236 100644
--- a/chromeos/dbus/mock_dbus_thread_manager.h
+++ b/chromeos/dbus/mock_dbus_thread_manager.h
@@ -29,10 +29,6 @@ class MockBluetoothOutOfBandClient;
class MockCrosDisksClient;
class MockCryptohomeClient;
class MockDebugDaemonClient;
-class MockExperimentalBluetoothAdapterClient;
-class MockExperimentalBluetoothAgentManagerClient;
-class MockExperimentalBluetoothDeviceClient;
-class MockExperimentalBluetoothProfileManagerClient;
class MockShillDeviceClient;
class MockShillIPConfigClient;
class MockShillManagerClient;
@@ -141,22 +137,6 @@ class MockDBusThreadManager : public DBusThreadManager {
MockDebugDaemonClient* mock_debugdaemon_client() {
return mock_debugdaemon_client_.get();
}
- MockExperimentalBluetoothAdapterClient*
- mock_experimental_bluetooth_adapter_client() {
- return mock_experimental_bluetooth_adapter_client_.get();
- }
- MockExperimentalBluetoothAgentManagerClient*
- mock_experimental_bluetooth_agent_manager_client() {
- return mock_experimental_bluetooth_agent_manager_client_.get();
- }
- MockExperimentalBluetoothDeviceClient*
- mock_experimental_bluetooth_device_client() {
- return mock_experimental_bluetooth_device_client_.get();
- }
- MockExperimentalBluetoothProfileManagerClient*
- mock_experimental_bluetooth_profile_manager_client() {
- return mock_experimental_bluetooth_profile_manager_client_.get();
- }
MockShillDeviceClient* mock_shill_device_client() {
return mock_shill_device_client_.get();
}
@@ -235,14 +215,6 @@ class MockDBusThreadManager : public DBusThreadManager {
scoped_ptr<MockCrosDisksClient> mock_cros_disks_client_;
scoped_ptr<MockCryptohomeClient> mock_cryptohome_client_;
scoped_ptr<MockDebugDaemonClient> mock_debugdaemon_client_;
- scoped_ptr<MockExperimentalBluetoothAdapterClient>
- mock_experimental_bluetooth_adapter_client_;
- scoped_ptr<MockExperimentalBluetoothAgentManagerClient>
- mock_experimental_bluetooth_agent_manager_client_;
- scoped_ptr<MockExperimentalBluetoothDeviceClient>
- mock_experimental_bluetooth_device_client_;
- scoped_ptr<MockExperimentalBluetoothProfileManagerClient>
- mock_experimental_bluetooth_profile_manager_client_;
scoped_ptr<MockShillDeviceClient> mock_shill_device_client_;
scoped_ptr<MockShillIPConfigClient> mock_shill_ipconfig_client_;
scoped_ptr<MockShillManagerClient> mock_shill_manager_client_;
diff --git a/chromeos/dbus/mock_experimental_bluetooth_adapter_client.cc b/chromeos/dbus/mock_experimental_bluetooth_adapter_client.cc
deleted file mode 100644
index 51455a4..0000000
--- a/chromeos/dbus/mock_experimental_bluetooth_adapter_client.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2013 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/mock_experimental_bluetooth_adapter_client.h"
-
-#include "third_party/cros_system_api/dbus/service_constants.h"
-
-namespace chromeos {
-
-MockExperimentalBluetoothAdapterClient::Properties::Properties()
- : ExperimentalBluetoothAdapterClient::Properties::Properties(
- NULL,
- bluetooth_adapter::kExperimentalBluetoothAdapterInterface,
- PropertyChangedCallback()) {}
-
-MockExperimentalBluetoothAdapterClient::Properties::~Properties() {}
-
-MockExperimentalBluetoothAdapterClient::
- MockExperimentalBluetoothAdapterClient() {}
-
-MockExperimentalBluetoothAdapterClient::
- ~MockExperimentalBluetoothAdapterClient() {}
-
-} // namespace chromeos
diff --git a/chromeos/dbus/mock_experimental_bluetooth_adapter_client.h b/chromeos/dbus/mock_experimental_bluetooth_adapter_client.h
deleted file mode 100644
index 1a21a55..0000000
--- a/chromeos/dbus/mock_experimental_bluetooth_adapter_client.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2013 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.
-
-#ifndef CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_ADAPTER_CLIENT_H_
-#define CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_ADAPTER_CLIENT_H_
-
-#include <string>
-
-#include "chromeos/dbus/experimental_bluetooth_adapter_client.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace chromeos {
-
-class MockExperimentalBluetoothAdapterClient
- : public ExperimentalBluetoothAdapterClient {
- public:
- struct Properties : public ExperimentalBluetoothAdapterClient::Properties {
- Properties();
- virtual ~Properties();
-
- MOCK_METHOD0(ConnectSignals, void());
-
- MOCK_METHOD2(Get, void(dbus::PropertyBase* property,
- dbus::PropertySet::GetCallback callback));
- MOCK_METHOD0(GetAll, void());
- MOCK_METHOD2(Set, void(dbus::PropertyBase* property,
- dbus::PropertySet::SetCallback callback));
-
- MOCK_METHOD1(ChangedReceived, void(dbus::Signal*));
- };
-
- MockExperimentalBluetoothAdapterClient();
- virtual ~MockExperimentalBluetoothAdapterClient();
-
- MOCK_METHOD1(AddObserver, void(Observer*));
- MOCK_METHOD1(RemoveObserver, void(Observer*));
- MOCK_METHOD0(GetAdapters, std::vector<dbus::ObjectPath>());
- MOCK_METHOD1(GetProperties, Properties*(const dbus::ObjectPath&));
- MOCK_METHOD3(StartDiscovery, void(const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD3(StopDiscovery, void(const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD4(RemoveDevice, void(const dbus::ObjectPath&,
- const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_ADAPTER_CLIENT_H_
diff --git a/chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.cc b/chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.cc
deleted file mode 100644
index fef13fa..0000000
--- a/chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.cc
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) 2013 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/mock_experimental_bluetooth_agent_manager_client.h"
-
-namespace chromeos {
-
-MockExperimentalBluetoothAgentManagerClient::
- MockExperimentalBluetoothAgentManagerClient() {}
-
-MockExperimentalBluetoothAgentManagerClient::
- ~MockExperimentalBluetoothAgentManagerClient() {}
-
-} // namespace chromeos
diff --git a/chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.h b/chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.h
deleted file mode 100644
index 0d2d81f..0000000
--- a/chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2013 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.
-
-#ifndef CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_AGENT_MANAGER_CLIENT_H_
-#define CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_AGENT_MANAGER_CLIENT_H_
-
-#include <string>
-
-#include "chromeos/dbus/experimental_bluetooth_agent_manager_client.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace chromeos {
-
-class MockExperimentalBluetoothAgentManagerClient
- : public ExperimentalBluetoothAgentManagerClient {
- public:
- MockExperimentalBluetoothAgentManagerClient();
- virtual ~MockExperimentalBluetoothAgentManagerClient();
-
- MOCK_METHOD4(RegisterAgent, void(const dbus::ObjectPath&,
- const std::string&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD3(UnregisterAgent, void(const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD3(RequestDefaultAgent, void(const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_AGENT_MANAGER_CLIENT_H_
diff --git a/chromeos/dbus/mock_experimental_bluetooth_device_client.cc b/chromeos/dbus/mock_experimental_bluetooth_device_client.cc
deleted file mode 100644
index 92dfc74..0000000
--- a/chromeos/dbus/mock_experimental_bluetooth_device_client.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2013 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/mock_experimental_bluetooth_device_client.h"
-
-#include "third_party/cros_system_api/dbus/service_constants.h"
-
-namespace chromeos {
-
-MockExperimentalBluetoothDeviceClient::Properties::Properties()
- : ExperimentalBluetoothDeviceClient::Properties::Properties(
- NULL,
- bluetooth_device::kExperimentalBluetoothDeviceInterface,
- PropertyChangedCallback()) {}
-
-MockExperimentalBluetoothDeviceClient::Properties::~Properties() {}
-
-MockExperimentalBluetoothDeviceClient::
- MockExperimentalBluetoothDeviceClient() {}
-
-MockExperimentalBluetoothDeviceClient::
- ~MockExperimentalBluetoothDeviceClient() {}
-
-} // namespace chromeos
diff --git a/chromeos/dbus/mock_experimental_bluetooth_device_client.h b/chromeos/dbus/mock_experimental_bluetooth_device_client.h
deleted file mode 100644
index c92a62b..0000000
--- a/chromeos/dbus/mock_experimental_bluetooth_device_client.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2013 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.
-
-#ifndef CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_DEVICE_CLIENT_H_
-#define CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_DEVICE_CLIENT_H_
-
-#include <string>
-
-#include "chromeos/dbus/experimental_bluetooth_device_client.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace chromeos {
-
-class MockExperimentalBluetoothDeviceClient
- : public ExperimentalBluetoothDeviceClient {
- public:
- struct Properties : public ExperimentalBluetoothDeviceClient::Properties {
- Properties();
- virtual ~Properties();
-
- MOCK_METHOD0(ConnectSignals, void());
-
- MOCK_METHOD2(Get, void(dbus::PropertyBase* property,
- dbus::PropertySet::GetCallback callback));
- MOCK_METHOD0(GetAll, void());
- MOCK_METHOD2(Set, void(dbus::PropertyBase* property,
- dbus::PropertySet::SetCallback callback));
-
- MOCK_METHOD1(ChangedReceived, void(dbus::Signal*));
- };
-
- MockExperimentalBluetoothDeviceClient();
- virtual ~MockExperimentalBluetoothDeviceClient();
-
- MOCK_METHOD1(AddObserver, void(Observer*));
- MOCK_METHOD1(RemoveObserver, void(Observer*));
- MOCK_METHOD1(GetDevicesForAdapter,
- std::vector<dbus::ObjectPath>(const dbus::ObjectPath&));
- MOCK_METHOD1(GetProperties, Properties*(const dbus::ObjectPath&));
- MOCK_METHOD3(Connect, void(const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD3(Disconnect, void(const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD4(ConnectProfile, void(const dbus::ObjectPath&,
- const std::string&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD4(DisconnectProfile, void(const dbus::ObjectPath&,
- const std::string&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD3(Pair, void(const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD3(CancelPairing, void(const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_DEVICE_CLIENT_H_
diff --git a/chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.cc b/chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.cc
deleted file mode 100644
index 35ec3ce..0000000
--- a/chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.cc
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) 2013 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/mock_experimental_bluetooth_profile_manager_client.h"
-
-namespace chromeos {
-
-MockExperimentalBluetoothProfileManagerClient::
- MockExperimentalBluetoothProfileManagerClient() {}
-
-MockExperimentalBluetoothProfileManagerClient::
- ~MockExperimentalBluetoothProfileManagerClient() {}
-
-} // namespace chromeos
diff --git a/chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h b/chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h
deleted file mode 100644
index c07f85e..0000000
--- a/chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2013 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.
-
-#ifndef CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
-#define CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
-
-#include <string>
-
-#include "chromeos/dbus/experimental_bluetooth_profile_manager_client.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace chromeos {
-
-class MockExperimentalBluetoothProfileManagerClient
- : public ExperimentalBluetoothProfileManagerClient {
- public:
- MockExperimentalBluetoothProfileManagerClient();
- virtual ~MockExperimentalBluetoothProfileManagerClient();
-
- MOCK_METHOD5(RegisterProfile, void(const dbus::ObjectPath&,
- const std::string&,
- const Options&,
- const base::Closure&,
- const ErrorCallback&));
- MOCK_METHOD3(UnregisterProfile, void(const dbus::ObjectPath&,
- const base::Closure&,
- const ErrorCallback&));
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_