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

Side by Side Diff: cloud_print/service/win/service_ipc_unittest.cc

Issue 18054007: Use a direct include of time headers in chrome_frame/, chromeos/, cloud_print/, components/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/files/scoped_temp_dir.h" 5 #include "base/files/scoped_temp_dir.h"
6 #include "base/threading/platform_thread.h" 6 #include "base/threading/platform_thread.h"
7 #include "base/time.h" 7 #include "base/time/time.h"
8 #include "cloud_print/service/win/service_listener.h" 8 #include "cloud_print/service/win/service_listener.h"
9 #include "cloud_print/service/win/service_utils.h" 9 #include "cloud_print/service/win/service_utils.h"
10 #include "cloud_print/service/win/setup_listener.h" 10 #include "cloud_print/service/win/setup_listener.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 TEST(ServiceIpcTest, Timeout) { 13 TEST(ServiceIpcTest, Timeout) {
14 SetupListener setup(GetCurrentUserName()); 14 SetupListener setup(GetCurrentUserName());
15 ASSERT_FALSE(setup.WaitResponce(base::TimeDelta::FromSeconds(3))); 15 ASSERT_FALSE(setup.WaitResponce(base::TimeDelta::FromSeconds(3)));
16 } 16 }
17 17
(...skipping 19 matching lines...) Expand all
37 } 37 }
38 38
39 TEST(ServiceIpcTest, InvaludUser) { 39 TEST(ServiceIpcTest, InvaludUser) {
40 base::ScopedTempDir temp_dir; 40 base::ScopedTempDir temp_dir;
41 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 41 ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
42 SetupListener setup(L"guest"); 42 SetupListener setup(L"guest");
43 ServiceListener service(temp_dir.path()); 43 ServiceListener service(temp_dir.path());
44 ASSERT_FALSE(setup.WaitResponce(base::TimeDelta::FromSeconds(3))); 44 ASSERT_FALSE(setup.WaitResponce(base::TimeDelta::FromSeconds(3)));
45 } 45 }
46 46
OLDNEW
« no previous file with comments | « cloud_print/gcp20/prototype/gcp20_device.cc ('k') | components/autofill/content/browser/autocheckout/whitelist_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698