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

Side by Side Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h

Issue 2178853006: bluetooth: fuzzer: Add a connect and getPrimaryServices tokens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-fuzzer-fake-adapter-uuid
Patch Set: Format Created 4 years, 4 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
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVIDER _H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Returns a list of all services added to the device. 359 // Returns a list of all services added to the device.
360 // - GetGattService: 360 // - GetGattService:
361 // Return a service matching the identifier provided if the service was 361 // Return a service matching the identifier provided if the service was
362 // added to the mock. 362 // added to the mock.
363 // - GetAddress: 363 // - GetAddress:
364 // Returns: address 364 // Returns: address
365 // - GetName: 365 // - GetName:
366 // Returns: device_name. 366 // Returns: device_name.
367 // - IsPaired: 367 // - IsPaired:
368 // Returns true. 368 // Returns true.
369 // - ConnectGatt:
370 // Calls error callback with
371 // BluetoothDevice::ConnectErrorCode::ERROR_UNSUPPORTED_DEVICE.
369 static std::unique_ptr<testing::NiceMock<device::MockBluetoothDevice>> 372 static std::unique_ptr<testing::NiceMock<device::MockBluetoothDevice>>
370 GetBaseDevice(device::MockBluetoothAdapter* adapter, 373 GetBaseDevice(device::MockBluetoothAdapter* adapter,
371 const std::string& device_name = "Base Device", 374 const std::string& device_name = "Base Device",
372 device::BluetoothDevice::UUIDList uuids = 375 device::BluetoothDevice::UUIDList uuids =
373 device::BluetoothDevice::UUIDList(), 376 device::BluetoothDevice::UUIDList(),
374 const std::string& address = "00:00:00:00:00:00"); 377 const std::string& address = "00:00:00:00:00:00");
375 378
376 // |BatteryDevice| 379 // |BatteryDevice|
377 // Inherits from |BaseDevice|(adapter, "Battery Device", uuids, 380 // Inherits from |BaseDevice|(adapter, "Battery Device", uuids,
378 // "00:00:00:00:00:01") 381 // "00:00:00:00:00:01")
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 623
621 // Function to turn an integer into an MAC address of the form 624 // Function to turn an integer into an MAC address of the form
622 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) 625 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef)
623 // returns "00:00:DE:AD:BE:EF". 626 // returns "00:00:DE:AD:BE:EF".
624 static std::string makeMACAddress(uint64_t addr); 627 static std::string makeMACAddress(uint64_t addr);
625 }; 628 };
626 629
627 } // namespace content 630 } // namespace content
628 631
629 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ 632 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698