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

Side by Side Diff: device/usb/usb_service_unittest.cc

Issue 497363004: Merge components/usb_service into device/usb. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 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
« no previous file with comments | « device/usb/usb_service_impl.cc ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "components/usb_service/usb_device.h"
8 #include "components/usb_service/usb_device_handle.h"
9 #include "device/test/usb_test_gadget.h" 7 #include "device/test/usb_test_gadget.h"
8 #include "device/usb/usb_device.h"
9 #include "device/usb/usb_device_handle.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using ::usb_service::UsbDeviceHandle;
13
14 namespace device { 12 namespace device {
15 13
16 namespace { 14 namespace {
17 15
18 class UsbServiceTest : public ::testing::Test { 16 class UsbServiceTest : public ::testing::Test {
19 public: 17 public:
20 virtual void SetUp() { 18 virtual void SetUp() {
21 message_loop_.reset(new base::MessageLoopForIO); 19 message_loop_.reset(new base::MessageLoopForIO);
22 } 20 }
23 21
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 53
56 scoped_ptr<UsbTestGadget> gadget = UsbTestGadget::Claim(); 54 scoped_ptr<UsbTestGadget> gadget = UsbTestGadget::Claim();
57 ASSERT_TRUE(gadget.get()); 55 ASSERT_TRUE(gadget.get());
58 ASSERT_TRUE(gadget->Disconnect()); 56 ASSERT_TRUE(gadget->Disconnect());
59 ASSERT_TRUE(gadget->Reconnect()); 57 ASSERT_TRUE(gadget->Reconnect());
60 } 58 }
61 59
62 } // namespace 60 } // namespace
63 61
64 } // namespace device 62 } // namespace device
OLDNEW
« no previous file with comments | « device/usb/usb_service_impl.cc ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698