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

Unified Diff: extensions/browser/api/bluetooth/bluetooth_private_apitest.cc

Issue 1419023004: Add bluetoothPrivate.connect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_543294_bluetooth_options_2b_props
Patch Set: Rebase Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/bluetooth/bluetooth_private_apitest.cc
diff --git a/extensions/browser/api/bluetooth/bluetooth_private_apitest.cc b/extensions/browser/api/bluetooth/bluetooth_private_apitest.cc
index a6f20e10e1d3cf4987eb0ba2f4ced4e9b2ff92c3..770154f37ca7d33ec74696821b2239beea8e70c0 100644
--- a/extensions/browser/api/bluetooth/bluetooth_private_apitest.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_private_apitest.cc
@@ -257,6 +257,17 @@ IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, DiscoveryFilter) {
<< message_;
}
+IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, Connect) {
+ EXPECT_CALL(*mock_device_.get(), IsConnected())
+ .Times(2)
+ .WillOnce(Return(false))
+ .WillOnce(Return(true));
+ EXPECT_CALL(*mock_device_.get(), Connect(_, _, _))
+ .WillOnce(InvokeCallbackArgument<1>());
+ ASSERT_TRUE(RunComponentExtensionTest("bluetooth_private/connect"))
+ << message_;
+}
+
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, Pair) {
EXPECT_CALL(*mock_adapter_.get(),
AddPairingDelegate(
« no previous file with comments | « extensions/browser/api/bluetooth/bluetooth_private_api.cc ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698