# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("cache") {
sources = [
"image_cache.cc",
"image_cache.h",
"image_data_store.h",
"image_data_store_disk.cc",
"image_data_store_disk.h",
"image_metadata_store.h",
"image_metadata_store_leveldb.cc",
"image_metadata_store_leveldb.h",
]
deps = [
"proto",
"//components/base32",
"//components/image_fetcher/core:metrics",
"//components/leveldb_proto",
"//components/prefs",
"//net",
]
public_deps = [
":types",
"//base",
]
}
source_set("types") {
sources = [ "image_store_types.h" ]
deps = [
"proto",
"//base",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"image_cache_unittest.cc",
"image_data_store_disk_unittest.cc",
"image_metadata_store_leveldb_unittest.cc",
]
deps = [
":cache",
"proto",
"//base",
"//base/test:test_support",
"//components/image_fetcher/core:metrics",
"//components/leveldb_proto:test_support",
"//components/prefs:test_support",
"//testing/gmock",
"//testing/gtest:gtest",
]
}