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

Unified Diff: device/bluetooth/bluetooth_task_manager_win_unittest.cc

Issue 14273013: Simplified BluetoothAdapterWin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with Head Created 7 years, 8 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 | « device/bluetooth/bluetooth_task_manager_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_task_manager_win_unittest.cc
diff --git a/device/bluetooth/bluetooth_task_manager_win_unittest.cc b/device/bluetooth/bluetooth_task_manager_win_unittest.cc
index 4e461d04515dd6b2f54b9f12c4454cbade8b0f2c..d4cd8e5cf2c7d924fc08a105cab2c5e3df91ad5b 100644
--- a/device/bluetooth/bluetooth_task_manager_win_unittest.cc
+++ b/device/bluetooth/bluetooth_task_manager_win_unittest.cc
@@ -14,8 +14,10 @@ namespace {
class BluetoothTaskObserver : public device::BluetoothTaskManagerWin::Observer {
public:
- BluetoothTaskObserver() {
- Clear();
+ BluetoothTaskObserver()
+ : num_adapter_state_changed_(0),
+ num_discovery_started_(0),
+ num_discovery_stopped_(0) {
}
virtual ~BluetoothTaskObserver() {
@@ -34,19 +36,6 @@ class BluetoothTaskObserver : public device::BluetoothTaskManagerWin::Observer {
num_discovery_stopped_++;
}
- virtual void DevicesDiscovered(
- const ScopedVector<device::BluetoothTaskManagerWin::DeviceState>&
- devices) OVERRIDE {
- num_devices_discovered_++;
- }
-
- void Clear() {
- num_adapter_state_changed_ = 0;
- num_discovery_started_ = 0;
- num_discovery_stopped_ = 0;
- num_devices_discovered_ = 0;
- }
-
int num_adapter_state_changed() const {
return num_adapter_state_changed_;
}
@@ -59,15 +48,10 @@ class BluetoothTaskObserver : public device::BluetoothTaskManagerWin::Observer {
return num_discovery_stopped_;
}
- int num_devices_discovered() const {
- return num_devices_discovered_;
- }
-
private:
int num_adapter_state_changed_;
int num_discovery_started_;
int num_discovery_stopped_;
- int num_devices_discovered_;
};
} // namespace
« no previous file with comments | « device/bluetooth/bluetooth_task_manager_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698