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

Side by Side Diff: device/usb/usb_context_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
« no previous file with comments | « device/usb/usb_context.cc ('k') | device/usb/usb_descriptors.cc » ('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/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
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
OLDNEW
« no previous file with comments | « device/usb/usb_context.cc ('k') | device/usb/usb_descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698