| Index: blimp/engine/BUILD.gn
|
| diff --git a/blimp/engine/BUILD.gn b/blimp/engine/BUILD.gn
|
| index c15176bc114733357ce5caea1544db94064bd52d..24556c6003733b712b1f0ad5b4128ba4966afc4f 100644
|
| --- a/blimp/engine/BUILD.gn
|
| +++ b/blimp/engine/BUILD.gn
|
| @@ -467,6 +467,44 @@ source_set("test_support") {
|
| ]
|
| }
|
|
|
| +source_set("testing_app") {
|
| + testonly = true
|
| +
|
| + sources = [
|
| + "testing/app/blimp_browser_testing_main_parts.cc",
|
| + "testing/app/blimp_browser_testing_main_parts.h",
|
| + "testing/app/blimp_content_browser_client_for_test.cc",
|
| + "testing/app/blimp_content_browser_client_for_test.h",
|
| + "testing/app/blimp_content_main_delegate_for_test.cc",
|
| + "testing/app/blimp_content_main_delegate_for_test.h",
|
| + "testing/app/blimp_url_rewriter.cc",
|
| + "testing/app/blimp_url_rewriter.h",
|
| + "testing/app/content_testing_main.cc",
|
| + "testing/app/content_testing_main.h",
|
| + "testing/session/blimp_engine_testing_session.cc",
|
| + "testing/session/blimp_engine_testing_session.h",
|
| + ]
|
| +
|
| + deps = [
|
| + ":app",
|
| + ":app_config",
|
| + ":feature",
|
| + ":pak",
|
| + ":session",
|
| + ":test_support",
|
| + "//base",
|
| + "//blimp/engine:blob_channel_mojo_cpp_sources",
|
| + "//blimp/net",
|
| + "//content/public/app:both",
|
| + "//content/public/browser",
|
| + "//content/public/common",
|
| + "//content/public/common:service_names",
|
| + "//content/test:test_support",
|
| + "//net:test_support",
|
| + "//testing/gtest",
|
| + ]
|
| +}
|
| +
|
| source_set("app_unit_tests") {
|
| testonly = true
|
|
|
| @@ -503,6 +541,29 @@ source_set("app_unit_tests") {
|
| ]
|
| }
|
|
|
| +source_set("testing_app_unit_tests") {
|
| + testonly = true
|
| +
|
| + sources = [
|
| + "testing/app/blimp_url_rewriter_unittest.cc",
|
| + ]
|
| +
|
| + deps = [
|
| + ":app",
|
| + ":feature",
|
| + ":session",
|
| + ":test_support",
|
| + ":testing_app",
|
| + "//base",
|
| + "//content/public/app:both",
|
| + "//content/public/browser",
|
| + "//content/test:browsertest_support",
|
| + "//content/test:test_support",
|
| + "//net:test_support",
|
| + "//testing/gtest",
|
| + ]
|
| +}
|
| +
|
| source_set("common_unit_tests") {
|
| testonly = true
|
|
|
| @@ -610,6 +671,7 @@ source_set("unit_tests") {
|
| ":font_data_fetcher_unit_tests",
|
| ":mojo_unit_tests",
|
| ":renderer_unit_tests",
|
| + ":testing_app_unit_tests",
|
| ]
|
| }
|
|
|
| @@ -617,6 +679,44 @@ if (is_linux) {
|
| _runtime_deps = "$root_gen_dir/blimp-engine.runtime_deps"
|
| _rebased_runtime_deps = rebase_path(_runtime_deps, root_out_dir)
|
|
|
| + executable("blimp_engine_testing_app") {
|
| + testonly = true
|
| +
|
| + sources = [
|
| + "testing/app/blimp_testing_main.cc",
|
| + ]
|
| +
|
| + deps = [
|
| + ":app",
|
| + ":app_config",
|
| + ":pak",
|
| + ":session",
|
| + ":testing_app",
|
| + "//base",
|
| + "//blimp/net",
|
| + "//content/public/app:both",
|
| + "//content/public/browser",
|
| + "//content/public/common",
|
| + "//content/test:test_support",
|
| + "//net:test_support",
|
| + ]
|
| +
|
| + data_deps = [
|
| + ":pak",
|
| + "//sandbox/linux:chrome_sandbox",
|
| + "//third_party/blimp_fonts",
|
| + ]
|
| +
|
| + configs += [ "//content:content_implementation" ]
|
| + }
|
| +
|
| + group("engine_for_test") {
|
| + testonly = true
|
| + public_deps = [
|
| + ":blimp_engine_testing_app",
|
| + ]
|
| + }
|
| +
|
| executable("blimp_engine_app") {
|
| sources = [
|
| "app/blimp_main.cc",
|
|
|