| OLD | NEW |
| 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/macros.h" |
| 5 #include "base/threading/platform_thread.h" | 6 #include "base/threading/platform_thread.h" |
| 6 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 7 #include "device/usb/usb_context.h" | 8 #include "device/usb/usb_context.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "third_party/libusb/src/libusb/libusb.h" | 10 #include "third_party/libusb/src/libusb/libusb.h" |
| 10 | 11 |
| 11 namespace device { | 12 namespace device { |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 | 15 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 45 scoped_refptr<UsbContextForTest> context( | 46 scoped_refptr<UsbContextForTest> context( |
| 46 new UsbContextForTest(platform_context)); | 47 new UsbContextForTest(platform_context)); |
| 47 } | 48 } |
| 48 base::TimeDelta elapse = base::TimeTicks::Now() - start; | 49 base::TimeDelta elapse = base::TimeTicks::Now() - start; |
| 49 if (elapse > base::TimeDelta::FromSeconds(2)) { | 50 if (elapse > base::TimeDelta::FromSeconds(2)) { |
| 50 FAIL(); | 51 FAIL(); |
| 51 } | 52 } |
| 52 } | 53 } |
| 53 | 54 |
| 54 } // namespace device | 55 } // namespace device |
| OLD | NEW |