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

Side by Side Diff: components/translate/core/language_detection/BUILD.gn

Issue 1311623002: Add more components_unittests to GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « components/translate/core/common/BUILD.gn ('k') | components/url_matcher/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 static_library("language_detection") { 7 source_set("language_detection") {
8 sources = [ 8 sources = [
9 "language_detection_util.cc", 9 "language_detection_util.cc",
10 "language_detection_util.h", 10 "language_detection_util.h",
11 ] 11 ]
12 12
13 deps = [ 13 deps = [
14 "//base", 14 "//base",
15 "//components/translate/core/common", 15 "//components/translate/core/common",
16 "//url", 16 "//url",
17 ] 17 ]
18 18
19 if (cld_version == 1) { 19 if (cld_version == 1) {
20 deps += [ "//third_party/cld" ] 20 deps += [ "//third_party/cld" ]
21 } 21 } else if (cld_version == 2) {
22 if (cld_version == 2) { 22 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
23 deps += [ "//third_party/cld_2" ] 23 } else {
24 assert(false, "Need a CLD version")
24 } 25 }
25 } 26 }
27
28 source_set("unit_tests") {
29 testonly = true
30 sources = [
31 "language_detection_util_unittest.cc",
32 ]
33 deps = [
34 ":language_detection",
35 "//testing/gtest",
36 ]
37 }
OLDNEW
« no previous file with comments | « components/translate/core/common/BUILD.gn ('k') | components/url_matcher/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698