blob: 44216eb5f3db5842128fa6f1fa74b986e47ba189 [file] [log] [blame]
# 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.
import("//testing/test.gni")
import("//third_party/protobuf/proto_library.gni")
assert(is_chromeos, "Non-Chrome-OS builds must not depend on //chromeos")
component("cryptohome") {
defines = [ "IS_CHROMEOS_CRYPTOHOME_IMPL" ]
deps = [
"//base",
"//chromeos/dbus:common",
"//chromeos/dbus/cryptohome",
"//chromeos/dbus/cryptohome:cryptohome_proto",
"//chromeos/login/auth:challenge_response_key",
"//components/account_id",
"//components/device_event_log",
"//components/user_manager",
]
sources = [
"async_method_caller.cc",
"async_method_caller.h",
"cryptohome_parameters.cc",
"cryptohome_parameters.h",
"cryptohome_util.cc",
"cryptohome_util.h",
"homedir_methods.cc",
"homedir_methods.h",
"system_salt_getter.cc",
"system_salt_getter.h",
]
}
source_set("test_support") {
testonly = true
public_deps = [
":cryptohome",
"//chromeos/dbus/cryptohome",
"//chromeos/dbus/cryptohome:cryptohome_proto",
]
deps = [
"//base",
"//base/test:test_support",
"//components/account_id",
"//testing/gmock",
"//testing/gtest",
]
sources = [
"mock_async_method_caller.cc",
"mock_async_method_caller.h",
"mock_homedir_methods.cc",
"mock_homedir_methods.h",
]
}
source_set("unit_tests") {
testonly = true
deps = [
":test_support",
"//base",
"//base/test:test_support",
"//chromeos/dbus:test_support",
"//chromeos/login/auth:challenge_response_key",
"//testing/gtest:gtest",
]
sources = [
"cryptohome_util_unittest.cc",
"system_salt_getter_unittest.cc",
]
}