blob: 4eb4b87204409ece285064ff23b49c498a310e1a [file] [log] [blame]
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("agent_runner") {
sources = [
"agent_context_impl.cc",
"agent_context_impl.h",
"agent_runner.cc",
"agent_runner_storage_impl.cc",
"agent_runner_storage_impl.h",
]
public_deps = [
":public",
]
deps = [
"//garnet/public/lib/app/cpp",
"//garnet/public/lib/app/fidl",
"//garnet/public/lib/fidl/cpp/bindings",
"//garnet/public/lib/fsl",
"//garnet/public/lib/fxl",
"//peridot/bin/component",
"//peridot/lib/common:teardown",
"//peridot/lib/fidl:app_client",
"//peridot/lib/fidl:array_to_string",
"//peridot/lib/fidl:json_xdr",
"//peridot/lib/ledger_client:page_client",
"//peridot/lib/ledger_client:storage",
"//peridot/lib/ledger_client:types",
"//peridot/public/lib/agent/fidl",
"//peridot/public/lib/agent/fidl/agent_controller",
"//peridot/public/lib/async/cpp:operation",
"//peridot/public/lib/auth/fidl",
"//peridot/public/lib/component/fidl",
"//peridot/public/lib/ledger/fidl",
"//peridot/public/lib/lifecycle/fidl",
"//peridot/public/lib/user_intelligence/fidl",
]
}
source_set("unittests") {
testonly = true
sources = [
"agent_runner_unittest.cc",
]
deps = [
":agent_runner",
":public",
"//garnet/public/lib/app/cpp",
"//garnet/public/lib/app/fidl",
"//garnet/public/lib/fsl",
"//garnet/public/lib/fxl",
"//peridot/bin/component",
"//peridot/bin/entity",
"//peridot/lib/fidl:array_to_string",
"//peridot/lib/ledger_client:page_client",
"//peridot/lib/testing:fake_agent_runner_storage",
"//peridot/lib/testing:fake_application_launcher",
"//peridot/lib/testing:mock_base",
"//peridot/lib/testing:test_with_ledger",
"//peridot/public/lib/agent/fidl",
"//peridot/public/lib/auth/fidl",
"//peridot/public/lib/user_intelligence/fidl",
"//third_party/gtest",
"//zircon/system/ulib/trace",
]
}
# Broken out for component to depend on w/o creating circles.
source_set("public") {
sources = [
"agent_runner.h",
"agent_runner_storage.cc",
"agent_runner_storage.h",
]
deps = [
"//garnet/public/lib/app/fidl",
"//garnet/public/lib/fidl/cpp/bindings",
"//garnet/public/lib/fxl",
"//peridot/bin/entity",
"//peridot/bin/ledger/fidl",
"//peridot/public/lib/agent/fidl",
"//peridot/public/lib/agent/fidl/agent_controller",
"//peridot/public/lib/async/cpp:operation",
"//peridot/public/lib/auth/fidl",
"//peridot/public/lib/ledger/fidl",
"//peridot/public/lib/user_intelligence/fidl",
]
}