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

Side by Side Diff: device/bluetooth/bluetooth_advertisement_bluez_unittest.cc

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 12 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 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 #include <vector> 5 #include <vector>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
12 #include "device/bluetooth/bluetooth_adapter.h" 13 #include "device/bluetooth/bluetooth_adapter.h"
13 #include "device/bluetooth/bluetooth_adapter_factory.h" 14 #include "device/bluetooth/bluetooth_adapter_factory.h"
14 #include "device/bluetooth/bluetooth_advertisement.h" 15 #include "device/bluetooth/bluetooth_advertisement.h"
15 #include "device/bluetooth/bluetooth_advertisement_bluez.h" 16 #include "device/bluetooth/bluetooth_advertisement_bluez.h"
16 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 17 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
17 #include "device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider .h" 18 #include "device/bluetooth/dbus/fake_bluetooth_le_advertisement_service_provider .h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 TriggerReleased(advertisement); 232 TriggerReleased(advertisement);
232 EXPECT_TRUE(observer_->released()); 233 EXPECT_TRUE(observer_->released());
233 234
234 // Unregistering an advertisement that has been released should give us an 235 // Unregistering an advertisement that has been released should give us an
235 // error. 236 // error.
236 UnregisterAdvertisement(advertisement); 237 UnregisterAdvertisement(advertisement);
237 ExpectError(BluetoothAdvertisement::ERROR_ADVERTISEMENT_DOES_NOT_EXIST); 238 ExpectError(BluetoothAdvertisement::ERROR_ADVERTISEMENT_DOES_NOT_EXIST);
238 } 239 }
239 240
240 } // namespace bluez 241 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_advertisement.h ('k') | device/bluetooth/bluetooth_advertisement_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698