| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "build/build_config.h" |
| 10 #include "chrome/browser/extensions/extension_apitest.h" | 11 #include "chrome/browser/extensions/extension_apitest.h" |
| 11 #include "device/bluetooth/test/mock_bluetooth_adapter.h" | 12 #include "device/bluetooth/test/mock_bluetooth_adapter.h" |
| 12 #include "device/bluetooth/test/mock_bluetooth_device.h" | 13 #include "device/bluetooth/test/mock_bluetooth_device.h" |
| 13 #include "device/bluetooth/test/mock_bluetooth_discovery_session.h" | 14 #include "device/bluetooth/test/mock_bluetooth_discovery_session.h" |
| 14 #include "extensions/browser/api/bluetooth/bluetooth_api.h" | 15 #include "extensions/browser/api/bluetooth/bluetooth_api.h" |
| 15 #include "extensions/browser/api/bluetooth/bluetooth_event_router.h" | 16 #include "extensions/browser/api/bluetooth/bluetooth_event_router.h" |
| 16 #include "extensions/browser/event_router.h" | 17 #include "extensions/browser/event_router.h" |
| 17 #include "extensions/common/api/bluetooth_private.h" | 18 #include "extensions/common/api/bluetooth_private.h" |
| 18 #include "extensions/common/switches.h" | 19 #include "extensions/common/switches.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 EXPECT_CALL(*mock_device_.get(), Pair(_, _, _)) | 294 EXPECT_CALL(*mock_device_.get(), Pair(_, _, _)) |
| 294 .WillOnce(DoAll( | 295 .WillOnce(DoAll( |
| 295 WithoutArgs(Invoke( | 296 WithoutArgs(Invoke( |
| 296 this, | 297 this, |
| 297 &BluetoothPrivateApiTest::DispatchConfirmPasskeyPairingEvent)), | 298 &BluetoothPrivateApiTest::DispatchConfirmPasskeyPairingEvent)), |
| 298 InvokeCallbackArgument<1>())); | 299 InvokeCallbackArgument<1>())); |
| 299 ASSERT_TRUE(RunComponentExtensionTest("bluetooth_private/pair")) << message_; | 300 ASSERT_TRUE(RunComponentExtensionTest("bluetooth_private/pair")) << message_; |
| 300 } | 301 } |
| 301 | 302 |
| 302 } // namespace extensions | 303 } // namespace extensions |
| OLD | NEW |