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

Side by Side Diff: chrome/test/interactive_ui/view_event_test_base.cc

Issue 3056029: Move the number conversions from string_util to a new file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « chrome/test/in_process_browser_test.cc ('k') | chrome/test/page_cycler/page_cycler_test.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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/test/interactive_ui/view_event_test_base.h" 5 #include "chrome/test/interactive_ui/view_event_test_base.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <ole2.h> 8 #include <ole2.h>
9 #endif 9 #endif
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/string_util.h" 13 #include "base/string_number_conversions.h"
14 #include "chrome/browser/automation/ui_controls.h" 14 #include "chrome/browser/automation/ui_controls.h"
15 #include "chrome/test/ui_test_utils.h" 15 #include "chrome/test/ui_test_utils.h"
16 #include "views/view.h" 16 #include "views/view.h"
17 #include "views/window/window.h" 17 #include "views/window/window.h"
18 18
19 namespace { 19 namespace {
20 20
21 // Default delay for the time-out at which we stop message loop. 21 // Default delay for the time-out at which we stop message loop.
22 const int kTimeoutInMS = 20000; 22 const int kTimeoutInMS = 20000;
23 23
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 StopBackgroundThread(); 158 StopBackgroundThread();
159 159
160 scoped_ptr<Task> task_deleter(task); 160 scoped_ptr<Task> task_deleter(task);
161 task->Run(); 161 task->Run();
162 if (HasFatalFailure()) 162 if (HasFatalFailure())
163 Done(); 163 Done();
164 } 164 }
165 165
166 void ViewEventTestBase::TimedOut() { 166 void ViewEventTestBase::TimedOut() {
167 std::string error_message = "Test timed out. Each test runs for a max of "; 167 std::string error_message = "Test timed out. Each test runs for a max of ";
168 error_message += IntToString(kTimeoutInMS); 168 error_message += base::IntToString(kTimeoutInMS);
169 error_message += " ms (kTimeoutInMS)."; 169 error_message += " ms (kTimeoutInMS).";
170 170
171 GTEST_NONFATAL_FAILURE_(error_message.c_str()); 171 GTEST_NONFATAL_FAILURE_(error_message.c_str());
172 172
173 Done(); 173 Done();
174 } 174 }
OLDNEW
« no previous file with comments | « chrome/test/in_process_browser_test.cc ('k') | chrome/test/page_cycler/page_cycler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698