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

Side by Side Diff: device/bluetooth/bluetooth_adapter_mac_unittest.mm

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/bind.h" 5 #include "base/bind.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/test/test_simple_task_runner.h" 7 #include "base/test/test_simple_task_runner.h"
8 #include "build/build_config.h"
8 #include "device/bluetooth/bluetooth_adapter.h" 9 #include "device/bluetooth/bluetooth_adapter.h"
9 #include "device/bluetooth/bluetooth_adapter_mac.h" 10 #include "device/bluetooth/bluetooth_adapter_mac.h"
10 #include "device/bluetooth/bluetooth_discovery_session.h" 11 #include "device/bluetooth/bluetooth_discovery_session.h"
11 #include "device/bluetooth/bluetooth_discovery_session_outcome.h" 12 #include "device/bluetooth/bluetooth_discovery_session_outcome.h"
12 #include "device/bluetooth/bluetooth_low_energy_device_mac.h" 13 #include "device/bluetooth/bluetooth_low_energy_device_mac.h"
13 #include "device/bluetooth/test/mock_bluetooth_central_manager_mac.h" 14 #include "device/bluetooth/test/mock_bluetooth_central_manager_mac.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/ocmock/OCMock/OCMock.h" 16 #include "third_party/ocmock/OCMock/OCMock.h"
16 17
17 #if defined(OS_IOS) 18 #if defined(OS_IOS)
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 EXPECT_EQ(1, NumDevices()); 317 EXPECT_EQ(1, NumDevices());
317 EXPECT_TRUE(DevicePresent(mock_peripheral)); 318 EXPECT_TRUE(DevicePresent(mock_peripheral));
318 319
319 // Check that object pointed to by |device| is deleted by the adapter. 320 // Check that object pointed to by |device| is deleted by the adapter.
320 RemoveTimedOutDevices(); 321 RemoveTimedOutDevices();
321 EXPECT_EQ(0, NumDevices()); 322 EXPECT_EQ(0, NumDevices());
322 EXPECT_FALSE(DevicePresent(mock_peripheral)); 323 EXPECT_FALSE(DevicePresent(mock_peripheral));
323 } 324 }
324 325
325 } // namespace device 326 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_adapter_profile_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698