blob: 45d0563c846ccc0b0b2c45be5a8d128da174ef96 [file] [log] [blame]
# Copyright 2019 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.
assert(is_chromeos, "Non-Chrome-OS builds must not depend on //chromeos")
component("login_state") {
defines = [ "IS_LOGIN_STATE_IMPL" ]
deps = [
"//base",
"//chromeos:chromeos_constants",
"//components/device_event_log",
]
sources = [
"login_state.cc",
"login_state.h",
]
}
source_set("test_support") {
testonly = true
deps = [
":login_state",
"//base",
"//testing/gmock",
"//testing/gtest",
]
sources = [
"scoped_test_public_session_login_state.cc",
"scoped_test_public_session_login_state.h",
]
}
source_set("unit_tests") {
configs += [ "//build/config/linux/dbus" ]
testonly = true
deps = [
":login_state",
"//base",
"//chromeos:chromeos_constants",
"//testing/gmock",
"//testing/gtest",
]
sources = [
"login_state_unittest.cc",
]
}