| 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 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "content/common/debug_flags.h" | 50 #include "content/common/debug_flags.h" |
| 51 #include "googleurl/src/gurl.h" | 51 #include "googleurl/src/gurl.h" |
| 52 #include "net/base/net_util.h" | 52 #include "net/base/net_util.h" |
| 53 #include "ui/gfx/gl/gl_implementation.h" | 53 #include "ui/gfx/gl/gl_implementation.h" |
| 54 | 54 |
| 55 #if defined(OS_WIN) | 55 #if defined(OS_WIN) |
| 56 #include "base/win/windows_version.h" | 56 #include "base/win/windows_version.h" |
| 57 #endif | 57 #endif |
| 58 | 58 |
| 59 #if defined(USE_AURA) | 59 #if defined(USE_AURA) |
| 60 #include "ui/gfx/compositor/compositor_switches.h" | 60 #include "ui/compositor/compositor_switches.h" |
| 61 #endif | 61 #endif |
| 62 | 62 |
| 63 using base::Time; | 63 using base::Time; |
| 64 using base::TimeDelta; | 64 using base::TimeDelta; |
| 65 using base::TimeTicks; | 65 using base::TimeTicks; |
| 66 | 66 |
| 67 const wchar_t UITestBase::kFailedNoCrashService[] = | 67 const wchar_t UITestBase::kFailedNoCrashService[] = |
| 68 #if defined(OS_WIN) | 68 #if defined(OS_WIN) |
| 69 L"NOTE: This test is expected to fail if crash_service.exe is not " | 69 L"NOTE: This test is expected to fail if crash_service.exe is not " |
| 70 L"running. Start it manually before running this test (see the build " | 70 L"running. Start it manually before running this test (see the build " |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 base::PlatformThread::Sleep(kDelay); | 752 base::PlatformThread::Sleep(kDelay); |
| 753 } | 753 } |
| 754 | 754 |
| 755 LOG(INFO) << "Elapsed time: " << (base::Time::Now() - start).InSecondsF() | 755 LOG(INFO) << "Elapsed time: " << (base::Time::Now() - start).InSecondsF() |
| 756 << " seconds" | 756 << " seconds" |
| 757 << " call failed " << fail_count << " times" | 757 << " call failed " << fail_count << " times" |
| 758 << " state was incorrect " << incorrect_state_count << " times"; | 758 << " state was incorrect " << incorrect_state_count << " times"; |
| 759 ADD_FAILURE() << "Timeout reached in " << __FUNCTION__; | 759 ADD_FAILURE() << "Timeout reached in " << __FUNCTION__; |
| 760 return false; | 760 return false; |
| 761 } | 761 } |
| OLD | NEW |