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

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

Issue 2856093002: bluetooth: Clean up unused fake adapters (Closed)
Patch Set: Merge branch 'bluetooth-simulate-fake-central' into bluetooth-cleanup-unused-adapters Created 3 years, 7 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // |PresentAdapter| 49 // |PresentAdapter|
50 // Inherits from |BaseAdapter| 50 // Inherits from |BaseAdapter|
51 // Devices added: 51 // Devices added:
52 // None. 52 // None.
53 // Mock Functions: 53 // Mock Functions:
54 // - IsPresent: Returns true 54 // - IsPresent: Returns true
55 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 55 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
56 GetPresentAdapter(); 56 GetPresentAdapter();
57 57
58 // |NotPresentAdapter|
59 // Inherits from |BaseAdapter|
60 // Devices added:
61 // None.
62 // Mock Functions:
63 // - IsPresent: Returns false
64 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
65 GetNotPresentAdapter();
66
67 // |PoweredAdapter| 58 // |PoweredAdapter|
68 // Inherits from |PresentAdapter| 59 // Inherits from |PresentAdapter|
69 // Devices added: 60 // Devices added:
70 // None. 61 // None.
71 // Mock Functions: 62 // Mock Functions:
72 // - IsPowered: Returns true 63 // - IsPowered: Returns true
73 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>> 64 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
74 GetPoweredAdapter(); 65 GetPoweredAdapter();
75 66
76 // |NotPoweredAdapter|
77 // Inherits from |PresentAdapter|
78 // Devices added:
79 // None.
80 // Mock Functions:
81 // - IsPowered: Returns false
82 static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
83 GetNotPoweredAdapter();
84
85 // |ScanFilterCheckingAdapter| 67 // |ScanFilterCheckingAdapter|
86 // Inherits from |PoweredAdapter| 68 // Inherits from |PoweredAdapter|
87 // BluetoothAdapter that asserts that its StartDiscoverySessionWithFilter() 69 // BluetoothAdapter that asserts that its StartDiscoverySessionWithFilter()
88 // method is called with a filter consisting of the standard battery, heart 70 // method is called with a filter consisting of the standard battery, heart
89 // rate, and glucose services. 71 // rate, and glucose services.
90 // Devices added: 72 // Devices added:
91 // - |BatteryDevice| 73 // - |BatteryDevice|
92 // Mock Functions: 74 // Mock Functions:
93 // - StartDiscoverySessionWithFilter: 75 // - StartDiscoverySessionWithFilter:
94 // - With correct arguments: Run success callback. 76 // - With correct arguments: Run success callback.
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 825
844 // Function to turn an integer into an MAC address of the form 826 // Function to turn an integer into an MAC address of the form
845 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef) 827 // XX:XX:XX:XX:XX:XX. For example makeMACAddress(0xdeadbeef)
846 // returns "00:00:DE:AD:BE:EF". 828 // returns "00:00:DE:AD:BE:EF".
847 static std::string makeMACAddress(uint64_t addr); 829 static std::string makeMACAddress(uint64_t addr);
848 }; 830 };
849 831
850 } // namespace content 832 } // namespace content
851 833
852 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_ADAPTER_PROVI DER_H_ 834 #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