| 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 "webkit/support/webkit_support.h" | 5 #include "webkit/support/webkit_support.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug/debugger.h" | 8 #include "base/debug/debugger.h" |
| 9 #include "base/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
| 14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "third_party/WebKit/public/web/WebCache.h" | 16 #include "third_party/WebKit/public/web/WebCache.h" |
| 17 #include "third_party/WebKit/public/web/WebKit.h" | 17 #include "third_party/WebKit/public/web/WebKit.h" |
| 18 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 18 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
| 19 #include "url/url_util.h" | 19 #include "url/url_util.h" |
| 20 #include "webkit/child/webkitplatformsupport_impl.h" |
| 20 #include "webkit/common/user_agent/user_agent.h" | 21 #include "webkit/common/user_agent/user_agent.h" |
| 21 #include "webkit/common/user_agent/user_agent_util.h" | 22 #include "webkit/common/user_agent/user_agent_util.h" |
| 22 #include "webkit/glue/webkit_glue.h" | 23 #include "webkit/glue/webkit_glue.h" |
| 23 #include "webkit/glue/webkitplatformsupport_impl.h" | |
| 24 #include "webkit/support/platform_support.h" | 24 #include "webkit/support/platform_support.h" |
| 25 #include "webkit/support/test_webkit_platform_support.h" | 25 #include "webkit/support/test_webkit_platform_support.h" |
| 26 | 26 |
| 27 #if defined(OS_ANDROID) | 27 #if defined(OS_ANDROID) |
| 28 #include "base/test/test_support_android.h" | 28 #include "base/test/test_support_android.h" |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 // All fatal log messages (e.g. DCHECK failures) imply unit test failures | 33 // All fatal log messages (e.g. DCHECK failures) imply unit test failures |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 if (RunningOnValgrind()) | 146 if (RunningOnValgrind()) |
| 147 WebKit::WebCache::clear(); | 147 WebKit::WebCache::clear(); |
| 148 WebKit::shutdown(); | 148 WebKit::shutdown(); |
| 149 delete test_environment; | 149 delete test_environment; |
| 150 test_environment = NULL; | 150 test_environment = NULL; |
| 151 AfterShutdown(); | 151 AfterShutdown(); |
| 152 logging::CloseLogFile(); | 152 logging::CloseLogFile(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace webkit_support | 155 } // namespace webkit_support |
| OLD | NEW |