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

Side by Side Diff: device/bluetooth/bluetooth_profile_chromeos_unittest.cc

Issue 16092013: Use base::MessageLoop in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again, sigh Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | extensions/common/one_shot_event_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | extensions/common/one_shot_event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698