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
|
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/test.gni")
import("//third_party/protobuf/proto_library.gni")
source_set("core") {
sources = [ "session_proto_storage.h" ]
deps = [ "//components/leveldb_proto" ]
}
source_set("session_proto_db") {
sources = [ "session_proto_db.h" ]
deps = [
":core",
"//base:base",
"//components/commerce/core:persisted_state_db_content_proto",
"//components/keyed_service/core",
"//components/leveldb_proto",
"//third_party/leveldatabase",
]
}
# TODO(crbug.com/1399914) Make tests more general and run on iOS trybot.
if (!is_ios) {
source_set("unit_tests") {
testonly = true
sources = [ "session_proto_db_unittest.cc" ]
deps = [
":core",
":session_proto_db",
":session_proto_db_test_proto",
"//base:base",
"//base/test:test_support",
"//components/commerce/core:persisted_state_db_content_proto",
"//components/leveldb_proto:test_support",
"//content/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/leveldatabase",
"//third_party/protobuf:protobuf_lite",
]
}
}
proto_library("session_proto_db_test_proto") {
sources = [ "session_proto_db_test_proto.proto" ]
}
|