blob: 5f01e7a5cd8aea02ac75b6da142af7b053d7ce2e [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/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/constants",
"//testing/gmock",
"//testing/gtest",
]
sources = [
"login_state_unittest.cc",
]
}