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

Unified Diff: components/html_viewer/BUILD.gn

Issue 1218323002: Hook up test runner to new layout_test_html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « PRESUBMIT.py ('k') | components/html_viewer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/BUILD.gn
diff --git a/components/html_viewer/BUILD.gn b/components/html_viewer/BUILD.gn
index 18170039448707e1465bc8e10f5a9d976280016e..9cea081abaec1ba1bbee0b0db0a2f9e2aae3b567 100644
--- a/components/html_viewer/BUILD.gn
+++ b/components/html_viewer/BUILD.gn
@@ -67,6 +67,8 @@ source_set("lib") {
"blink_resource_constants.h",
"blink_url_request_type_converters.cc",
"blink_url_request_type_converters.h",
+ "content_handler_impl.cc",
+ "content_handler_impl.h",
"devtools_agent_impl.cc",
"devtools_agent_impl.h",
"discardable_memory_allocator.cc",
@@ -84,8 +86,14 @@ source_set("lib") {
"global_state.h",
"html_document.cc",
"html_document.h",
+ "html_document_application_delegate.cc",
+ "html_document_application_delegate.h",
"html_document_oopif.cc",
"html_document_oopif.h",
+ "html_viewer.cc",
+ "html_viewer.h",
+ "html_viewer_switches.cc",
+ "html_viewer_switches.h",
"media_factory.cc",
"media_factory.h",
"mock_web_blob_registry_impl.cc",
@@ -142,7 +150,9 @@ source_set("lib") {
"//media/mojo",
"//mojo/application/public/cpp",
"//mojo/cc",
+ "//mojo/common",
"//mojo/converters/surfaces",
+ "//mojo/platform_handle",
"//mojo/services/network/public/cpp",
"//mojo/services/network/public/interfaces",
"//net",
@@ -177,31 +187,58 @@ source_set("lib") {
data_deps = [
"//components/clipboard",
"//components/view_manager",
+ "//mojo/services/network:network",
]
}
mojo_native_application("html_viewer") {
sources = [
- "content_handler_impl.cc",
- "content_handler_impl.h",
- "html_document_application_delegate.cc",
- "html_document_application_delegate.h",
- "html_viewer.cc",
- "html_viewer.h",
"html_viewer_main.cc",
- "html_viewer_switches.cc",
- "html_viewer_switches.h",
]
deps = [
":html_viewer_resources_grit",
":lib",
- "//mojo/common",
- "//mojo/platform_handle",
"//third_party/icu:icudata",
"//third_party/mojo/src/mojo/public/c/system:for_shared_library",
"//ui/resources:ui_test_pak",
]
- data_deps = [ "//mojo/services/network:network" ]
+ resources = [
+ "$root_out_dir/icudtl.dat",
+ "$root_out_dir/ui_test.pak",
+ "$target_gen_dir/html_viewer_resources.pak",
+ ]
+
+ if (v8_use_external_startup_data) {
+ resources += [
+ "$root_build_dir/natives_blob.bin",
+ "$root_build_dir/snapshot_blob.bin",
+ ]
+ deps += [ "//gin" ]
+ }
+}
+
+mojo_native_application("layout_test_html_viewer") {
+ testonly = true
+ sources = [
+ "layout_test_content_handler_impl.cc",
+ "layout_test_content_handler_impl.h",
+ "layout_test_html_viewer.cc",
+ "layout_test_html_viewer.h",
+ "layout_test_html_viewer_main.cc",
+ "web_test_delegate_impl.cc",
+ "web_test_delegate_impl.h",
+ ]
+ deps = [
+ ":html_viewer_resources_grit",
+ ":lib",
+ "//components/test_runner",
+ "//third_party/WebKit/public:blink",
+ "//third_party/WebKit/public:test_support",
+ "//third_party/icu:icudata",
+ "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
+ "//ui/resources:ui_test_pak",
+ "//url",
+ ]
resources = [
"$root_out_dir/icudtl.dat",
"$root_out_dir/ui_test.pak",
« no previous file with comments | « PRESUBMIT.py ('k') | components/html_viewer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698