| Index: blimp/engine/BUILD.gn
|
| diff --git a/blimp/engine/BUILD.gn b/blimp/engine/BUILD.gn
|
| index 0cdf5cdd9e44be59eeb7ec592f9518f3a79bd2b9..240592e76b206057f074f39174dbe48db1a78a82 100644
|
| --- a/blimp/engine/BUILD.gn
|
| +++ b/blimp/engine/BUILD.gn
|
| @@ -466,6 +466,41 @@ source_set("test_support") {
|
| ]
|
| }
|
|
|
| +source_set("testing_app") {
|
| + testonly = true
|
| +
|
| + sources = [
|
| + "testing/app/blimp_url_rewriter.cc",
|
| + "testing/app/blimp_url_rewriter.h",
|
| + "testing/app/test_blimp_browser_main_parts.cc",
|
| + "testing/app/test_blimp_browser_main_parts.h",
|
| + "testing/app/test_blimp_content_browser_client.cc",
|
| + "testing/app/test_blimp_content_browser_client.h",
|
| + "testing/app/test_blimp_content_main_delegate.cc",
|
| + "testing/app/test_blimp_content_main_delegate.h",
|
| + "testing/session/test_blimp_engine_session.cc",
|
| + "testing/session/test_blimp_engine_session.h",
|
| + ]
|
| +
|
| + deps = [
|
| + ":app",
|
| + ":app_config",
|
| + ":feature",
|
| + ":pak",
|
| + ":session",
|
| + ":test_support",
|
| + "//base",
|
| + "//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
|
|
|
| @@ -502,6 +537,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
|
|
|
| @@ -609,6 +667,7 @@ source_set("unit_tests") {
|
| ":font_data_fetcher_unit_tests",
|
| ":mojo_unit_tests",
|
| ":renderer_unit_tests",
|
| + ":testing_app_unit_tests",
|
| ]
|
| }
|
|
|
| @@ -616,6 +675,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/test_blimp_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",
|
|
|