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
3# found in the LICENSE file.
4
5static_library("common") {
6  sources = [
7    "language_detection_details.cc",
8    "language_detection_details.h",
9    "translate_constants.cc",
10    "translate_constants.h",
11    "translate_errors.h",
12    "translate_metrics.cc",
13    "translate_metrics.h",
14    "translate_switches.cc",
15    "translate_switches.h",
16    "translate_util.cc",
17    "translate_util.h",
18  ]
19
20  deps = [
21    "//base",
22    "//components/language/core/common",
23    "//third_party/metrics_proto",
24    "//url",
25  ]
26}
27
28source_set("unit_tests") {
29  testonly = true
30  sources = [
31    "translate_metrics_unittest.cc",
32    "translate_util_unittest.cc",
33  ]
34  deps = [
35    ":common",
36    "//base",
37    "//testing/gtest",
38    "//third_party/metrics_proto",
39    "//url",
40  ]
41}
42