forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update content/shell/common/test_runner to chromium coding style
BUG=331299 TBR=maruel@chromium.org R=marja@chromium.org Review URL: https://codereview.chromium.org/225543003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261881 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
jochen@chromium.org
committed
Apr 4, 2014
1 parent
a7666d8
commit 1f70cfa
Showing
12 changed files
with
175 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "content/shell/common/test_runner/test_preferences.h" | ||
|
||
#include "build/build_config.h" | ||
|
||
using blink::WebSettings; | ||
using blink::WebString; | ||
|
||
namespace content { | ||
|
||
TestPreferences::TestPreferences() { Reset(); } | ||
|
||
void TestPreferences::Reset() { | ||
default_font_size = 16; | ||
minimum_font_size = 0; | ||
dom_paste_allowed = true; | ||
xss_auditor_enabled = false; | ||
allow_display_of_insecure_content = true; | ||
allow_file_access_from_file_urls = true; | ||
allow_running_of_insecure_content = true; | ||
default_text_encoding_name = WebString::fromUTF8("ISO-8859-1"); | ||
experimental_webgl_enabled = false; | ||
experimental_css_regions_enabled = true; | ||
experimental_css_grid_layout_enabled = true; | ||
java_enabled = false; | ||
java_script_can_access_clipboard = true; | ||
java_script_can_open_windows_automatically = true; | ||
supports_multiple_windows = true; | ||
java_script_enabled = true; | ||
loads_images_automatically = true; | ||
offline_web_application_cache_enabled = true; | ||
plugins_enabled = true; | ||
caret_browsing_enabled = false; | ||
|
||
// Allow those layout tests running as local files, i.e. under | ||
// LayoutTests/http/tests/local, to access http server. | ||
allow_universal_access_from_file_urls = true; | ||
|
||
#if defined(OS_MACOSX) | ||
editing_behavior = WebSettings::EditingBehaviorMac; | ||
#else | ||
editing_behavior = WebSettings::EditingBehaviorWin; | ||
#endif | ||
|
||
tabs_to_links = false; | ||
hyperlink_auditing_enabled = false; | ||
should_respect_image_orientation = false; | ||
asynchronous_spell_checking_enabled = false; | ||
} | ||
|
||
} // namespace content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef CONTENT_SHELL_COMMON_TEST_RUNNER_TEST_PREFERENCES_H_ | ||
#define CONTENT_SHELL_COMMON_TEST_RUNNER_TEST_PREFERENCES_H_ | ||
|
||
#include "third_party/WebKit/public/platform/WebString.h" | ||
#include "third_party/WebKit/public/platform/WebURL.h" | ||
#include "third_party/WebKit/public/web/WebSettings.h" | ||
|
||
namespace blink { | ||
class WebView; | ||
} | ||
|
||
namespace content { | ||
|
||
struct TestPreferences { | ||
int default_font_size; | ||
int minimum_font_size; | ||
bool dom_paste_allowed; | ||
bool xss_auditor_enabled; | ||
bool allow_display_of_insecure_content; | ||
bool allow_file_access_from_file_urls; | ||
bool allow_running_of_insecure_content; | ||
bool author_and_user_styles_enabled; | ||
blink::WebString default_text_encoding_name; | ||
bool experimental_webgl_enabled; | ||
bool experimental_css_regions_enabled; | ||
bool experimental_css_grid_layout_enabled; | ||
bool java_enabled; | ||
bool java_script_can_access_clipboard; | ||
bool java_script_can_open_windows_automatically; | ||
bool supports_multiple_windows; | ||
bool java_script_enabled; | ||
bool loads_images_automatically; | ||
bool offline_web_application_cache_enabled; | ||
bool plugins_enabled; | ||
bool allow_universal_access_from_file_urls; | ||
blink::WebSettings::EditingBehavior editing_behavior; | ||
bool tabs_to_links; | ||
bool hyperlink_auditing_enabled; | ||
bool caret_browsing_enabled; | ||
bool should_respect_image_orientation; | ||
bool asynchronous_spell_checking_enabled; | ||
|
||
TestPreferences(); | ||
void Reset(); | ||
}; | ||
|
||
} | ||
|
||
#endif // CONTENT_SHELL_COMMON_TEST_RUNNER_TEST_PREFERENCES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.