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

Side by Side Diff: device/devices_app/usb/device_impl_unittest.cc

Issue 1646783002: Update webusb_descriptors.cc to parse the new WebUSB descriptors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@io_buffer
Patch Set: Sometimes MSVC complains about passing size_type to BarrierClosure. Created 4 years, 10 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 "device/devices_app/usb/device_impl.h" 5 #include "device/devices_app/usb/device_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
11 #include <set> 11 #include <set>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "base/stl_util.h" 19 #include "base/stl_util.h"
20 #include "device/devices_app/usb/fake_permission_provider.h" 20 #include "device/devices_app/usb/fake_permission_provider.h"
21 #include "device/usb/mock_usb_device.h" 21 #include "device/usb/mock_usb_device.h"
22 #include "device/usb/mock_usb_device_handle.h" 22 #include "device/usb/mock_usb_device_handle.h"
23 #include "mojo/public/cpp/bindings/interface_request.h" 23 #include "mojo/public/cpp/bindings/interface_request.h"
24 #include "net/base/io_buffer.h"
24 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
25 26
26 using ::testing::Invoke; 27 using ::testing::Invoke;
27 using ::testing::_; 28 using ::testing::_;
28 29
29 namespace device { 30 namespace device {
30 namespace usb { 31 namespace usb {
31 32
32 namespace { 33 namespace {
33 34
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 1, 4, 8, 0, base::Bind(&ExpectPacketsAndThen, TransferStatus::COMPLETED, 809 1, 4, 8, 0, base::Bind(&ExpectPacketsAndThen, TransferStatus::COMPLETED,
809 packets, loop.QuitClosure())); 810 packets, loop.QuitClosure()));
810 loop.Run(); 811 loop.Run();
811 } 812 }
812 813
813 EXPECT_CALL(mock_handle(), Close()); 814 EXPECT_CALL(mock_handle(), Close());
814 } 815 }
815 816
816 } // namespace usb 817 } // namespace usb
817 } // namespace device 818 } // namespace device
OLDNEW
« no previous file with comments | « chrome/browser/usb/usb_chooser_bubble_delegate.cc ('k') | device/devices_app/usb/type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698