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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc

Issue 2230083003: device: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "device/bluetooth/dbus/fake_bluetooth_media_transport_client.h" 5 #include "device/bluetooth/dbus/fake_bluetooth_media_transport_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <sys/socket.h> 8 #include <sys/socket.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 Properties* transport_properties) 96 Properties* transport_properties)
97 : path(transport_path) { 97 : path(transport_path) {
98 properties.reset(transport_properties); 98 properties.reset(transport_properties);
99 } 99 }
100 100
101 FakeBluetoothMediaTransportClient::Transport::~Transport() {} 101 FakeBluetoothMediaTransportClient::Transport::~Transport() {}
102 102
103 FakeBluetoothMediaTransportClient::FakeBluetoothMediaTransportClient() {} 103 FakeBluetoothMediaTransportClient::FakeBluetoothMediaTransportClient() {}
104 104
105 FakeBluetoothMediaTransportClient::~FakeBluetoothMediaTransportClient() { 105 FakeBluetoothMediaTransportClient::~FakeBluetoothMediaTransportClient() {
106 STLDeleteValues(&endpoint_to_transport_map_); 106 base::STLDeleteValues(&endpoint_to_transport_map_);
107 } 107 }
108 108
109 // DBusClient override. 109 // DBusClient override.
110 void FakeBluetoothMediaTransportClient::Init(dbus::Bus* bus) {} 110 void FakeBluetoothMediaTransportClient::Init(dbus::Bus* bus) {}
111 111
112 void FakeBluetoothMediaTransportClient::AddObserver( 112 void FakeBluetoothMediaTransportClient::AddObserver(
113 BluetoothMediaTransportClient::Observer* observer) { 113 BluetoothMediaTransportClient::Observer* observer) {
114 observers_.AddObserver(observer); 114 observers_.AddObserver(observer);
115 } 115 }
116 116
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 322 }
323 DCHECK((fds[0] > kInvalidFd) && (fds[1] > kInvalidFd)); 323 DCHECK((fds[0] > kInvalidFd) && (fds[1] > kInvalidFd));
324 transport->input_fd.reset(new base::File(fds[0])); 324 transport->input_fd.reset(new base::File(fds[0]));
325 325
326 dbus::FileDescriptor out_fd(fds[1]); 326 dbus::FileDescriptor out_fd(fds[1]);
327 callback.Run(&out_fd, kDefaultReadMtu, kDefaultWriteMtu); 327 callback.Run(&out_fd, kDefaultReadMtu, kDefaultWriteMtu);
328 SetState(endpoint_path, "active"); 328 SetState(endpoint_path, "active");
329 } 329 }
330 330
331 } // namespace bluez 331 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_media_client.cc ('k') | device/hid/hid_report_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698