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

Side by Side Diff: webkit/support/test_webkit_client.cc

Issue 1549039: Enable support for notifications layout tests in test shell.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 8 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 | « no previous file | webkit/tools/test_shell/layout_test_controller.h » ('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) 2010 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/scoped_temp_dir.h" 7 #include "base/scoped_temp_dir.h"
8 #include "base/stats_counters.h" 8 #include "base/stats_counters.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "net/base/cookie_monster.h" 10 #include "net/base/cookie_monster.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess( 60 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess(
61 WebKit::WebString::fromUTF8("test-shell-resource")); 61 WebKit::WebString::fromUTF8("test-shell-resource"));
62 WebScriptController::enableV8SingleThreadMode(); 62 WebScriptController::enableV8SingleThreadMode();
63 WebScriptController::registerExtension( 63 WebScriptController::registerExtension(
64 extensions_v8::GearsExtension::Get()); 64 extensions_v8::GearsExtension::Get());
65 WebScriptController::registerExtension( 65 WebScriptController::registerExtension(
66 extensions_v8::IntervalExtension::Get()); 66 extensions_v8::IntervalExtension::Get());
67 WebKit::WebRuntimeFeatures::enableSockets(true); 67 WebKit::WebRuntimeFeatures::enableSockets(true);
68 WebKit::WebRuntimeFeatures::enableApplicationCache(true); 68 WebKit::WebRuntimeFeatures::enableApplicationCache(true);
69 WebKit::WebRuntimeFeatures::enableDatabase(true); 69 WebKit::WebRuntimeFeatures::enableDatabase(true);
70 WebKit::WebRuntimeFeatures::enableNotifications(true);
70 71
71 // Load libraries for media and enable the media player. 72 // Load libraries for media and enable the media player.
72 bool enable_media = false; 73 bool enable_media = false;
73 FilePath module_path; 74 FilePath module_path;
74 if (PathService::Get(base::DIR_MODULE, &module_path)) { 75 if (PathService::Get(base::DIR_MODULE, &module_path)) {
75 #if defined(OS_MACOSX) 76 #if defined(OS_MACOSX)
76 if (mac_util::AmIBundled()) 77 if (mac_util::AmIBundled())
77 module_path = module_path.DirName().DirName().DirName(); 78 module_path = module_path.DirName().DirName().DirName();
78 #endif 79 #endif
79 if (media::InitializeMediaLibrary(module_path)) 80 if (media::InitializeMediaLibrary(module_path))
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 } 237 }
237 238
238 WebKit::WebThemeEngine* TestWebKitClient::themeEngine() { 239 WebKit::WebThemeEngine* TestWebKitClient::themeEngine() {
239 return active_theme_engine_; 240 return active_theme_engine_;
240 } 241 }
241 #endif 242 #endif
242 243
243 WebKit::WebSharedWorkerRepository* TestWebKitClient::sharedWorkerRepository() { 244 WebKit::WebSharedWorkerRepository* TestWebKitClient::sharedWorkerRepository() {
244 return NULL; 245 return NULL;
245 } 246 }
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/test_shell/layout_test_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698