From 153fc11c88cc94409b1ef8f08a175e0931b35c07 Mon Sep 17 00:00:00 2001 From: oshima Date: Fri, 7 Nov 2014 14:17:20 -0800 Subject: Add AthenaBrowserTest framework This allow us to run tests that depends on content/extensions without chrome/. * extract AthenaMainDelegate from athena_main.cc to use it in browser tests. * renamed existing AthenaBrowserTest for chrome to AthenaChromeBrowserTset * Renamed athena_xxx_brosertest.{h|cc} to xxx_browser_test.{h|cc} to match the patter used for other base test class for browser tests. BUG=None TBR=davidben@chromium.org, jamescook@chromium.org Review URL: https://codereview.chromium.org/689163003 Cr-Commit-Position: refs/heads/master@{#303307} --- athena/athena.gyp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'athena/athena.gyp') diff --git a/athena/athena.gyp b/athena/athena.gyp index e4e1455..b5ffcf6 100644 --- a/athena/athena.gyp +++ b/athena/athena.gyp @@ -282,11 +282,49 @@ 'test/base/test_resource_manager_delegate.cc', 'test/base/test_windows.cc', 'test/base/test_windows.h', + 'test/base/test_util.cc', + 'test/base/test_util.h', 'wm/test/window_manager_impl_test_api.cc', 'wm/test/window_manager_impl_test_api.h', ], }, { + 'target_name': 'athena_browsertest_support', + 'type': 'static_library', + 'dependencies': [ + '../testing/gtest.gyp:gtest', + 'athena_test_support', + 'main/athena_main.gyp:athena_main_lib', + 'resources/athena_resources.gyp:athena_pak', + ], + 'sources': [ + 'test/base/activity_lifetime_tracker.h', + 'test/base/activity_lifetime_tracker.cc', + 'test/base/athena_browser_test.h', + 'test/base/athena_browser_test.cc', + 'test/base/athena_browser_test.h', + 'test/base/athena_test_launcher_delegate.cc', + 'test/base/athena_test_launcher_delegate.h', + ], + }, + { + 'target_name': 'athena_browsertests', + 'type': 'executable', + 'dependencies': [ + '../testing/gtest.gyp:gtest', + '../skia/skia.gyp:skia', + 'athena_browsertest_support', + 'athena_app_shell_lib', + 'athena_lib', + ], + 'defines': [ + 'HAS_OUT_OF_PROC_TEST_RUNNER', + ], + 'sources': [ + 'test/base/athena_browser_test_main.cc', + ], + }, + { 'target_name': 'athena_unittests', 'type': 'executable', 'dependencies': [ -- cgit v1.1