blob: 4c498eb81a594ef82cf2663791d0e105bee136dc [file] [log] [blame]
# Copyright 2025 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//components/proto_extras/proto_extras.gni")
import("//testing/test.gni")
import("//third_party/protobuf/proto_library.gni")
proto_library("proto") {
sources = [ "proto/legion.proto" ]
}
# Generate serialization helper.
proto_extras("proto_extras") {
sources = [ "proto/legion.proto" ]
deps = [ ":proto" ]
}
source_set("legion") {
sources = [
"attestation_handler.h",
"attestation_handler_impl.cc",
"attestation_handler_impl.h",
"client.cc",
"client.h",
"crypto/crypter.cc",
"crypto/crypter.h",
"crypto/noise.cc",
"crypto/noise.h",
"crypto/secure_session_impl.cc",
"crypto/secure_session_impl.h",
"error_code.h",
"features.cc",
"features.h",
"legion_common.h",
"secure_channel.h",
"secure_channel_impl.cc",
"secure_channel_impl.h",
"secure_session.h",
"transport.h",
"websocket_client.cc",
"websocket_client.h",
]
deps = [
":proto",
":proto_extras",
"//base",
"//crypto",
"//mojo/public/cpp/system",
"//net",
"//services/network/public/cpp",
"//services/network/public/mojom",
"//third_party/boringssl",
"//third_party/oak:oak_proto",
"//third_party/oak:oak_proto_extras",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"attestation_handler_impl_unittest.cc",
"client_unittest.cc",
"crypto/crypter_unittest.cc",
"crypto/secure_session_impl_unittest.cc",
"secure_channel_impl_unittest.cc",
]
deps = [
":legion",
":proto",
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/oak:oak_proto",
"//third_party/oak:oak_proto_extras",
"//third_party/oak:oak_proto_test_extras",
]
}