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

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
index 72991bf6f7748330f49ff3d640429eef1ac68692..77f0c90389addd49dddb9701b31963e9931f3311 100644
--- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
@@ -174,10 +174,6 @@ LayoutTestBluetoothAdapterProvider::GetBluetoothAdapter(
const std::string& fake_adapter_name) {
if (fake_adapter_name == "BaseAdapter")
return GetBaseAdapter();
- if (fake_adapter_name == "NotPresentAdapter")
- return GetNotPresentAdapter();
- if (fake_adapter_name == "NotPoweredAdapter")
- return GetNotPoweredAdapter();
if (fake_adapter_name == "ScanFilterCheckingAdapter")
return GetScanFilterCheckingAdapter();
if (fake_adapter_name == "EmptyAdapter")
@@ -301,15 +297,6 @@ LayoutTestBluetoothAdapterProvider::GetPresentAdapter() {
// static
scoped_refptr<NiceMockBluetoothAdapter>
-LayoutTestBluetoothAdapterProvider::GetNotPresentAdapter() {
- scoped_refptr<NiceMockBluetoothAdapter> adapter(GetBaseAdapter());
- ON_CALL(*adapter, IsPresent()).WillByDefault(Return(false));
-
- return adapter;
-}
-
-// static
-scoped_refptr<NiceMockBluetoothAdapter>
LayoutTestBluetoothAdapterProvider::GetPoweredAdapter() {
scoped_refptr<NiceMockBluetoothAdapter> adapter(GetPresentAdapter());
ON_CALL(*adapter, IsPowered()).WillByDefault(Return(true));
@@ -319,15 +306,6 @@ LayoutTestBluetoothAdapterProvider::GetPoweredAdapter() {
// static
scoped_refptr<NiceMockBluetoothAdapter>
-LayoutTestBluetoothAdapterProvider::GetNotPoweredAdapter() {
- scoped_refptr<NiceMockBluetoothAdapter> adapter(GetPresentAdapter());
- ON_CALL(*adapter, IsPowered()).WillByDefault(Return(false));
-
- return adapter;
-}
-
-// static
-scoped_refptr<NiceMockBluetoothAdapter>
LayoutTestBluetoothAdapterProvider::GetScanFilterCheckingAdapter() {
scoped_refptr<NiceMockBluetoothAdapter> adapter(GetPoweredAdapter());
MockBluetoothAdapter* adapter_ptr = adapter.get();
« no previous file with comments | « content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698