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

Side by Side Diff: device/bluetooth/bluez/bluetooth_bluez_unittest.cc

Issue 2310883003: dbus: No dbus::FileDescriptor in BluetoothProfileServiceProvider (Closed)
Patch Set: Fix tests Created 4 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 class FakeBluetoothProfileServiceProviderDelegate 67 class FakeBluetoothProfileServiceProviderDelegate
68 : public bluez::BluetoothProfileServiceProvider::Delegate { 68 : public bluez::BluetoothProfileServiceProvider::Delegate {
69 public: 69 public:
70 FakeBluetoothProfileServiceProviderDelegate() {} 70 FakeBluetoothProfileServiceProviderDelegate() {}
71 71
72 // bluez::BluetoothProfileServiceProvider::Delegate: 72 // bluez::BluetoothProfileServiceProvider::Delegate:
73 void Released() override {} 73 void Released() override {}
74 74
75 void NewConnection( 75 void NewConnection(
76 const dbus::ObjectPath&, 76 const dbus::ObjectPath&,
77 std::unique_ptr<dbus::FileDescriptor>, 77 base::ScopedFD,
78 const bluez::BluetoothProfileServiceProvider::Delegate::Options&, 78 const bluez::BluetoothProfileServiceProvider::Delegate::Options&,
79 const ConfirmationCallback&) override {} 79 const ConfirmationCallback&) override {}
80 80
81 void RequestDisconnection(const dbus::ObjectPath&, 81 void RequestDisconnection(const dbus::ObjectPath&,
82 const ConfirmationCallback&) override {} 82 const ConfirmationCallback&) override {}
83 83
84 void Cancel() override {} 84 void Cancel() override {}
85 }; 85 };
86 86
87 } // namespace 87 } // namespace
(...skipping 4422 matching lines...) Expand 10 before | Expand all | Expand 10 after
4510 adapter_->Shutdown(); 4510 adapter_->Shutdown();
4511 adapter_bluez->OnStopDiscoveryError(GetDiscoveryErrorCallback(), "", ""); 4511 adapter_bluez->OnStopDiscoveryError(GetDiscoveryErrorCallback(), "", "");
4512 4512
4513 // 1 error reported to RemoveDiscoverySession because of OnStopDiscoveryError, 4513 // 1 error reported to RemoveDiscoverySession because of OnStopDiscoveryError,
4514 // and kNumberOfDiscoverySessions errors queued with AddDiscoverySession. 4514 // and kNumberOfDiscoverySessions errors queued with AddDiscoverySession.
4515 EXPECT_EQ(0, callback_count_); 4515 EXPECT_EQ(0, callback_count_);
4516 EXPECT_EQ(1 + kNumberOfDiscoverySessions, error_callback_count_); 4516 EXPECT_EQ(1 + kNumberOfDiscoverySessions, error_callback_count_);
4517 } 4517 }
4518 4518
4519 } // namespace bluez 4519 } // namespace bluez
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698