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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "device/bluetooth/bluetooth_device_win.h" | 10 #include "device/bluetooth/bluetooth_device_win.h" |
11 #include "device/bluetooth/bluetooth_service_record.h" | 11 #include "device/bluetooth/bluetooth_service_record.h" |
12 #include "device/bluetooth/bluetooth_task_manager_win.h" | 12 #include "device/bluetooth/bluetooth_task_manager_win.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const char kDeviceName[] = "Device"; | 17 const char kDeviceName[] = "Device"; |
18 const char kDeviceAddress[] = "device address"; | 18 const char kDeviceAddress[] = "device address"; |
19 | 19 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 EXPECT_TRUE(provides_service_with_name_); | 117 EXPECT_TRUE(provides_service_with_name_); |
118 | 118 |
119 device_->ProvidesServiceWithName( | 119 device_->ProvidesServiceWithName( |
120 "name that does not exist", | 120 "name that does not exist", |
121 base::Bind(&BluetoothDeviceWinTest::SetProvidesServiceWithName, | 121 base::Bind(&BluetoothDeviceWinTest::SetProvidesServiceWithName, |
122 base::Unretained(this))); | 122 base::Unretained(this))); |
123 EXPECT_FALSE(provides_service_with_name_); | 123 EXPECT_FALSE(provides_service_with_name_); |
124 } | 124 } |
125 | 125 |
126 } // namespace device | 126 } // namespace device |
OLD | NEW |