| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/ui_test.h" | 5 #include "chrome/test/ui/ui_test.h" |
| 6 | 6 |
| 7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
| 8 #include <signal.h> | 8 #include <signal.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include <set> | 12 #include <set> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/base_switches.h" | 15 #include "base/base_switches.h" |
| 16 #include "base/bind.h" | 16 #include "base/bind.h" |
| 17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
| 18 #include "base/environment.h" | 18 #include "base/environment.h" |
| 19 #include "base/file_path.h" | 19 #include "base/file_path.h" |
| 20 #include "base/file_util.h" | 20 #include "base/file_util.h" |
| 21 #include "base/json/json_value_serializer.h" | 21 #include "base/json/json_file_value_serializer.h" |
| 22 #include "base/memory/scoped_ptr.h" | 22 #include "base/memory/scoped_ptr.h" |
| 23 #include "base/path_service.h" | 23 #include "base/path_service.h" |
| 24 #include "base/process_util.h" | 24 #include "base/process_util.h" |
| 25 #include "base/scoped_temp_dir.h" | 25 #include "base/scoped_temp_dir.h" |
| 26 #include "base/string_number_conversions.h" | 26 #include "base/string_number_conversions.h" |
| 27 #include "base/string_split.h" | 27 #include "base/string_split.h" |
| 28 #include "base/test/test_file_util.h" | 28 #include "base/test/test_file_util.h" |
| 29 #include "base/test/test_timeouts.h" | 29 #include "base/test/test_timeouts.h" |
| 30 #include "base/threading/platform_thread.h" | 30 #include "base/threading/platform_thread.h" |
| 31 #include "base/time.h" | 31 #include "base/time.h" |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 base::PlatformThread::Sleep(kDelay); | 808 base::PlatformThread::Sleep(kDelay); |
| 809 } | 809 } |
| 810 | 810 |
| 811 LOG(INFO) << "Elapsed time: " << (base::Time::Now() - start).InSecondsF() | 811 LOG(INFO) << "Elapsed time: " << (base::Time::Now() - start).InSecondsF() |
| 812 << " seconds" | 812 << " seconds" |
| 813 << " call failed " << fail_count << " times" | 813 << " call failed " << fail_count << " times" |
| 814 << " state was incorrect " << incorrect_state_count << " times"; | 814 << " state was incorrect " << incorrect_state_count << " times"; |
| 815 ADD_FAILURE() << "Timeout reached in " << __FUNCTION__; | 815 ADD_FAILURE() << "Timeout reached in " << __FUNCTION__; |
| 816 return false; | 816 return false; |
| 817 } | 817 } |
| OLD | NEW |