OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #undef LOG | 5 #undef LOG |
6 | 6 |
7 #include "webkit/tools/test_shell/test_shell.h" | 7 #include "webkit/tools/test_shell/test_shell.h" |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 web_prefs_->developer_extras_enabled = !layout_test_mode_; | 411 web_prefs_->developer_extras_enabled = !layout_test_mode_; |
412 web_prefs_->shrinks_standalone_images_to_fit = false; | 412 web_prefs_->shrinks_standalone_images_to_fit = false; |
413 web_prefs_->uses_universal_detector = false; | 413 web_prefs_->uses_universal_detector = false; |
414 web_prefs_->text_areas_are_resizable = false; | 414 web_prefs_->text_areas_are_resizable = false; |
415 web_prefs_->java_enabled = true; | 415 web_prefs_->java_enabled = true; |
416 web_prefs_->allow_scripts_to_close_windows = false; | 416 web_prefs_->allow_scripts_to_close_windows = false; |
417 web_prefs_->xss_auditor_enabled = false; | 417 web_prefs_->xss_auditor_enabled = false; |
418 // It's off by default for Chrome, but we don't want to | 418 // It's off by default for Chrome, but we don't want to |
419 // lose the coverage of dynamic font tests in webkit test. | 419 // lose the coverage of dynamic font tests in webkit test. |
420 web_prefs_->remote_fonts_enabled = true; | 420 web_prefs_->remote_fonts_enabled = true; |
| 421 web_prefs_->local_storage_enabled = true; |
| 422 web_prefs_->session_storage_enabled = true; |
421 } | 423 } |
422 } | 424 } |
423 | 425 |
424 // static | 426 // static |
425 bool TestShell::RemoveWindowFromList(gfx::NativeWindow window) { | 427 bool TestShell::RemoveWindowFromList(gfx::NativeWindow window) { |
426 WindowList::iterator entry = | 428 WindowList::iterator entry = |
427 std::find(TestShell::windowList()->begin(), | 429 std::find(TestShell::windowList()->begin(), |
428 TestShell::windowList()->end(), | 430 TestShell::windowList()->end(), |
429 window); | 431 window); |
430 if (entry != TestShell::windowList()->end()) { | 432 if (entry != TestShell::windowList()->end()) { |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 | 672 |
671 void CloseIdleConnections() { | 673 void CloseIdleConnections() { |
672 // Used in benchmarking, Ignored for test_shell. | 674 // Used in benchmarking, Ignored for test_shell. |
673 } | 675 } |
674 | 676 |
675 void SetCacheMode(bool enabled) { | 677 void SetCacheMode(bool enabled) { |
676 // Used in benchmarking, Ignored for test_shell. | 678 // Used in benchmarking, Ignored for test_shell. |
677 } | 679 } |
678 | 680 |
679 } // namespace webkit_glue | 681 } // namespace webkit_glue |
OLD | NEW |