| # 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("//testing/test.gni") |
| |
| source_set("legion") { |
| sources = [ |
| "attestation_handler.h", |
| "client.cc", |
| "client.h", |
| "crypter.cc", |
| "crypter.h", |
| "features.cc", |
| "features.h", |
| "legion_common.h", |
| "noise.cc", |
| "noise.h", |
| "oak_session.h", |
| "secure_channel.h", |
| "secure_channel_impl.cc", |
| "secure_channel_impl.h", |
| "session_deserializer.cc", |
| "session_deserializer.h", |
| "transport.h", |
| "websocket_client.cc", |
| "websocket_client.h", |
| ] |
| deps = [ |
| "//base", |
| "//crypto", |
| "//mojo/public/cpp/system", |
| "//crypto", |
| "//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 = [ |
| "client_unittest.cc", |
| "crypter_unittest.cc", |
| "secure_channel_impl_unittest.cc", |
| "session_deserializer_unittest.cc", |
| ] |
| deps = [ |
| ":legion", |
| "//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", |
| ] |
| } |