summaryrefslogtreecommitdiff
path: root/chromium/components/offline_pages/task/BUILD.gn
blob: 8f338336c94cec4ba016f1f127d1f4ea50be0266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

if (is_android) {
  import("//build/config/android/rules.gni")
}

static_library("task") {
  sources = [
    "closure_task.cc",
    "closure_task.h",
    "sql_callback_task.cc",
    "sql_callback_task.h",
    "sql_store_base.cc",
    "sql_store_base.h",
    "task.cc",
    "task.h",
    "task_queue.cc",
    "task_queue.h",
  ]

  deps = [
    "//base",
    "//sql",
  ]
}

static_library("test_support") {
  testonly = true
  sources = [
    "task_test_base.cc",
    "task_test_base.h",
    "test_task.cc",
    "test_task.h",
    "test_task_runner.cc",
    "test_task_runner.h",
  ]

  deps = [
    ":task",
    "//base",
    "//base/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "task_queue_unittest.cc",
    "task_unittest.cc",
  ]

  deps = [
    ":task",
    ":test_support",
    "//base",
    "//base/test:test_support",
    "//testing/gtest",
  ]
}