| 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "chromeos/dbus/fake_bluetooth_device_client.h" | 6 #include "chromeos/dbus/fake_bluetooth_device_client.h" |
| 7 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" | 7 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" |
| 8 #include "chromeos/dbus/fake_bluetooth_profile_service_provider.h" | 8 #include "chromeos/dbus/fake_bluetooth_profile_service_provider.h" |
| 9 #include "chromeos/dbus/mock_dbus_thread_manager_without_gmock.h" | 9 #include "chromeos/dbus/mock_dbus_thread_manager_without_gmock.h" |
| 10 #include "device/bluetooth/bluetooth_adapter.h" | 10 #include "device/bluetooth/bluetooth_adapter.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 using device::BluetoothAdapter; | 22 using device::BluetoothAdapter; |
| 23 using device::BluetoothDevice; | 23 using device::BluetoothDevice; |
| 24 using device::BluetoothProfile; | 24 using device::BluetoothProfile; |
| 25 using device::BluetoothSocket; | 25 using device::BluetoothSocket; |
| 26 | 26 |
| 27 namespace chromeos { | 27 namespace chromeos { |
| 28 | 28 |
| 29 class BluetoothProfileChromeOSTest : public testing::Test { | 29 class BluetoothProfileChromeOSTest : public testing::Test { |
| 30 public: | 30 public: |
| 31 BluetoothProfileChromeOSTest() | 31 BluetoothProfileChromeOSTest() |
| 32 : message_loop_(MessageLoop::TYPE_IO), | 32 : message_loop_(base::MessageLoop::TYPE_IO), |
| 33 callback_count_(0), | 33 callback_count_(0), |
| 34 error_callback_count_(0), | 34 error_callback_count_(0), |
| 35 profile_callback_count_(0), | 35 profile_callback_count_(0), |
| 36 connection_callback_count_(0), | 36 connection_callback_count_(0), |
| 37 last_profile_(NULL), | 37 last_profile_(NULL), |
| 38 last_device_(NULL) {} | 38 last_device_(NULL) {} |
| 39 | 39 |
| 40 virtual void SetUp() { | 40 virtual void SetUp() { |
| 41 mock_dbus_thread_manager_ = | 41 mock_dbus_thread_manager_ = |
| 42 new MockDBusThreadManagerWithoutGMock(); | 42 new MockDBusThreadManagerWithoutGMock(); |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 // Unregister the profile, make sure it's no longer registered. | 348 // Unregister the profile, make sure it's no longer registered. |
| 349 last_profile_->Unregister(); | 349 last_profile_->Unregister(); |
| 350 | 350 |
| 351 profile_service_provider = | 351 profile_service_provider = |
| 352 fake_bluetooth_profile_manager_client_->GetProfileServiceProvider( | 352 fake_bluetooth_profile_manager_client_->GetProfileServiceProvider( |
| 353 FakeBluetoothProfileManagerClient::kRfcommUuid); | 353 FakeBluetoothProfileManagerClient::kRfcommUuid); |
| 354 EXPECT_TRUE(profile_service_provider == NULL); | 354 EXPECT_TRUE(profile_service_provider == NULL); |
| 355 } | 355 } |
| 356 | 356 |
| 357 } // namespace chromeos | 357 } // namespace chromeos |
| OLD | NEW |