OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" | 5 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" |
6 | 6 |
7 #include "base/bind.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
10 #include "base/time/time.h" | 9 #include "base/time/time.h" |
11 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
12 #include "chromeos/dbus/fake_bluetooth_device_client.h" | 11 #include "chromeos/dbus/fake_bluetooth_device_client.h" |
13 #include "dbus/object_path.h" | |
14 #include "third_party/cros_system_api/dbus/service_constants.h" | 12 #include "third_party/cros_system_api/dbus/service_constants.h" |
15 | 13 |
16 namespace chromeos { | 14 namespace chromeos { |
17 | 15 |
18 namespace { | 16 namespace { |
19 | 17 |
20 // Default interval for delayed tasks. | 18 // Default interval for delayed tasks. |
21 const int kSimulationIntervalMs = 750; | 19 const int kSimulationIntervalMs = 750; |
22 | 20 |
23 } // namespace | 21 } // namespace |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } | 263 } |
266 | 264 |
267 void FakeBluetoothAdapterClient::PostDelayedTask( | 265 void FakeBluetoothAdapterClient::PostDelayedTask( |
268 const base::Closure& callback) { | 266 const base::Closure& callback) { |
269 base::MessageLoop::current()->PostDelayedTask( | 267 base::MessageLoop::current()->PostDelayedTask( |
270 FROM_HERE, callback, | 268 FROM_HERE, callback, |
271 base::TimeDelta::FromMilliseconds(simulation_interval_ms_)); | 269 base::TimeDelta::FromMilliseconds(simulation_interval_ms_)); |
272 } | 270 } |
273 | 271 |
274 } // namespace chromeos | 272 } // namespace chromeos |
OLD | NEW |