| 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/test_webkit_platform_support.h" | 5 #include "webkit/support/test_webkit_platform_support.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/metrics/stats_counters.h" | 10 #include "base/metrics/stats_counters.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 LOG(WARNING) << "Failed to create a temp dir for the filesystem." | 94 LOG(WARNING) << "Failed to create a temp dir for the filesystem." |
| 95 "FileSystem feature will be disabled."; | 95 "FileSystem feature will be disabled."; |
| 96 DCHECK(file_system_root_.path().empty()); | 96 DCHECK(file_system_root_.path().empty()); |
| 97 } | 97 } |
| 98 | 98 |
| 99 #if defined(OS_WIN) | 99 #if defined(OS_WIN) |
| 100 // Ensure we pick up the default theme engine. | 100 // Ensure we pick up the default theme engine. |
| 101 SetThemeEngine(NULL); | 101 SetThemeEngine(NULL); |
| 102 #endif | 102 #endif |
| 103 | 103 |
| 104 net::CookieMonster::EnableFileScheme(); | |
| 105 | |
| 106 // Test shell always exposes the GC. | 104 // Test shell always exposes the GC. |
| 107 webkit_glue::SetJavaScriptFlags(" --expose-gc"); | 105 webkit_glue::SetJavaScriptFlags(" --expose-gc"); |
| 108 // Expose GCController to JavaScript. | 106 // Expose GCController to JavaScript. |
| 109 WebScriptController::registerExtension(extensions_v8::GCExtension::Get()); | 107 WebScriptController::registerExtension(extensions_v8::GCExtension::Get()); |
| 110 } | 108 } |
| 111 | 109 |
| 112 TestWebKitPlatformSupport::~TestWebKitPlatformSupport() { | 110 TestWebKitPlatformSupport::~TestWebKitPlatformSupport() { |
| 113 } | 111 } |
| 114 | 112 |
| 115 WebKit::WebMimeRegistry* TestWebKitPlatformSupport::mimeRegistry() { | 113 WebKit::WebMimeRegistry* TestWebKitPlatformSupport::mimeRegistry() { |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 return view.release(); | 336 return view.release(); |
| 339 } | 337 } |
| 340 | 338 |
| 341 WebKit::WebLayerTreeView* | 339 WebKit::WebLayerTreeView* |
| 342 TestWebKitPlatformSupport::createLayerTreeViewForTesting( | 340 TestWebKitPlatformSupport::createLayerTreeViewForTesting( |
| 343 TestViewType type) { | 341 TestViewType type) { |
| 344 DCHECK_EQ(TestViewTypeUnitTest, type); | 342 DCHECK_EQ(TestViewTypeUnitTest, type); |
| 345 return createLayerTreeViewForTesting(); | 343 return createLayerTreeViewForTesting(); |
| 346 } | 344 } |
| 347 | 345 |
| OLD | NEW |