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

Unified Diff: chrome/chrome_tests.gypi

Issue 461633002: Refactor language detection logic to allow non-static CLD data sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: All remaining comments addressed Created 6 years, 2 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
Index: chrome/chrome_tests.gypi
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi
index cc9f3bcd2c1f8b528790413827318f97457f31ae..a2eed5bf0283cd6f442118413f42a90804fac61d 100644
--- a/chrome/chrome_tests.gypi
+++ b/chrome/chrome_tests.gypi
@@ -547,9 +547,15 @@
'browser/task_manager/task_manager_browsertest_util.cc',
'browser/task_manager/task_manager_browsertest_util.h',
'browser/themes/theme_service_browsertest.cc',
- 'browser/translate/translate_browsertest.cc',
'browser/translate/cld_data_harness.cc',
'browser/translate/cld_data_harness.h',
+ 'browser/translate/cld_data_harness_factory.cc',
+ 'browser/translate/cld_data_harness_factory.h',
+ 'browser/translate/component_cld_data_harness.cc',
+ 'browser/translate/component_cld_data_harness.h',
+ 'browser/translate/standalone_cld_data_harness.cc',
+ 'browser/translate/standalone_cld_data_harness.h',
+ 'browser/translate/translate_browsertest.cc',
'browser/translate/translate_manager_browsertest.cc',
'browser/ui/app_list/app_list_controller_browsertest.cc',
'browser/ui/app_list/app_list_service_impl_browsertest.cc',
@@ -1365,6 +1371,12 @@
'<@(chrome_interactive_ui_test_sources)',
],
'conditions': [
+ [ 'cld_version==2', {
+ 'dependencies': [
+ # Interactive tests should use whatever CLD2 data access mode that
+ # the application embedder is using.
+ '../third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
+ }],
['use_x11==1', {
'dependencies': [
'../build/linux/system.gyp:xtst',
@@ -1921,24 +1933,11 @@
},
},
'conditions': [
- ['cld2_data_source=="component"', {
- 'sources': [
- 'browser/translate/component_cld_data_harness.cc',
- 'browser/translate/component_cld_data_harness.h',
- ]},
- ],
- ['cld2_data_source=="standalone"', {
- 'sources': [
- 'browser/translate/standalone_cld_data_harness.cc',
- 'browser/translate/standalone_cld_data_harness.h',
- ]},
- ],
- ['cld2_data_source=="static"', {
- 'sources': [
- 'browser/translate/static_cld_data_harness.cc',
- 'browser/translate/static_cld_data_harness.h',
- ]},
- ],
+ [ 'cld_version==2', {
+ 'dependencies': [
+ # Because the browser_tests use translate, they need CLD data.
+ '../third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
+ }],
['enable_one_click_signin==0', {
'sources!': [
'browser/ui/sync/one_click_signin_bubble_links_delegate_browsertest.cc',
@@ -2492,6 +2491,12 @@
},
],
'conditions': [
+ [ 'cld_version==2', {
+ 'dependencies': [
+ # Interactive tests should use whatever CLD2 data access mode that
+ # the application embedder is using.
+ '../third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
+ }],
['OS=="win"', {
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
@@ -2656,6 +2661,13 @@
'<@(sync_integration_tests_sources)',
],
'conditions': [
+ [ 'cld_version==2', {
+ 'dependencies': [
+ # Language detection is irrelevant to sync, so it can depend on
+ # any implementation for CLD2. Dynamic is smaller, so go with
+ # dynamic.
+ '../third_party/cld_2/cld_2.gyp:cld2_dynamic', ],
+ }],
['OS=="linux"', {
'dependencies': [
'../build/linux/system.gyp:ssl',
@@ -2751,6 +2763,13 @@
'<@(sync_performance_tests_sources)',
],
'conditions': [
+ [ 'cld_version==2', {
+ 'dependencies': [
+ # Language detection is irrelevant to sync, so it can depend on
+ # any implementation for CLD2. Dynamic is smaller, so go with
+ # dynamic.
+ '../third_party/cld_2/cld_2.gyp:cld2_dynamic', ],
+ }],
['OS=="linux"', {
'dependencies': [
'../build/linux/system.gyp:ssl',
« chrome/chrome.gyp ('K') | « chrome/chrome_shell.gypi ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698