Commit 6476277e authored by Kevin Yeo's avatar Kevin Yeo Committed by Commit Bot

Enable PSM libs tests for ChromeOS only until rand_r error is fixed.

Bug: chromium:1124018
Change-Id: Ib9e9f3a5bcb93d9dc094e1daee7217c3e01d8922
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2388603
Commit-Queue: Amr Aboelkher <amraboelkher@chromium.org>
Reviewed-by: default avatarAmr Aboelkher <amraboelkher@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803642}
parent bd1efdbb
......@@ -75,29 +75,31 @@ source_set("private_membership") {
]
}
test("private_membership_unittests") {
testonly = true
public_configs = [ ":private_membership_config" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
public = [ "src/internal/testing/constants.h" ]
sources = [
"src/internal/aes_ctr_256_with_fixed_iv_test.cc",
"src/internal/crypto_utils_test.cc",
"src/internal/encrypted_bucket_id_test.cc",
"src/internal/hashed_bucket_id_test.cc",
"src/internal/id_utils_test.cc",
"src/internal/oprf_utils_test.cc",
"src/internal/rlwe_id_utils_test.cc",
"src/internal/utils_test.cc",
"src/membership_response_map_test.cc",
"src/private_membership_rlwe_client_regression_test.cc",
]
public_deps = [
":private_membership",
":private_membership_proto",
"//testing/gmock:gmock",
"//testing/gtest:gtest_main",
"//third_party/shell-encryption:shell_encryption_test_library",
]
if (is_chromeos) {
test("private_membership_unittests") {
testonly = true
public_configs = [ ":private_membership_config" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
public = [ "src/internal/testing/constants.h" ]
sources = [
"src/internal/aes_ctr_256_with_fixed_iv_test.cc",
"src/internal/crypto_utils_test.cc",
"src/internal/encrypted_bucket_id_test.cc",
"src/internal/hashed_bucket_id_test.cc",
"src/internal/id_utils_test.cc",
"src/internal/oprf_utils_test.cc",
"src/internal/rlwe_id_utils_test.cc",
"src/internal/utils_test.cc",
"src/membership_response_map_test.cc",
"src/private_membership_rlwe_client_regression_test.cc",
]
public_deps = [
":private_membership",
":private_membership_proto",
"//testing/gmock:gmock",
"//testing/gtest:gtest_main",
"//third_party/shell-encryption:shell_encryption_test_library",
]
}
}
......@@ -94,63 +94,65 @@ source_set("shell_encryption") {
]
}
source_set("shell_encryption_test_library") {
testonly = true
public_configs = [ ":shell_encryption_config1" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
public = [
"src/prng/integral_prng_testing_types.h",
"src/testing/coefficient_polynomial.h",
"src/testing/coefficient_polynomial_ciphertext.h",
"src/testing/parameters.h",
"src/testing/protobuf_matchers.h",
"src/testing/status_matchers.h",
"src/testing/status_testing.h",
"src/testing/testing_prng.h",
"src/testing/testing_utils.h",
]
public_deps = [
":coefficient_polynomial_proto",
":shell_encryption",
"//testing/gmock:gmock",
"//testing/gtest:gtest",
]
}
if (is_chromeos) {
source_set("shell_encryption_test_library") {
testonly = true
public_configs = [ ":shell_encryption_config1" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
public = [
"src/prng/integral_prng_testing_types.h",
"src/testing/coefficient_polynomial.h",
"src/testing/coefficient_polynomial_ciphertext.h",
"src/testing/parameters.h",
"src/testing/protobuf_matchers.h",
"src/testing/status_matchers.h",
"src/testing/status_testing.h",
"src/testing/testing_prng.h",
"src/testing/testing_utils.h",
]
public_deps = [
":coefficient_polynomial_proto",
":shell_encryption",
"//testing/gmock:gmock",
"//testing/gtest:gtest",
]
}
source_set("shell_encryption_test") {
testonly = true
public_configs = [ ":shell_encryption_config1" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
sources = [
"src/bits_util_test.cc",
"src/context_test.cc",
"src/error_params_test.cc",
"src/galois_key_test.cc",
"src/int256_test.cc",
"src/montgomery_test.cc",
"src/ntt_parameters_test.cc",
"src/polynomial_test.cc",
"src/prng/prng_test.cc",
"src/prng/single_thread_chacha_prng_test.cc",
"src/relinearization_key_test.cc",
"src/sample_error_test.cc",
"src/status_macros_test.cc",
"src/statusor_test.cc",
"src/symmetric_encryption_test.cc",
"src/symmetric_encryption_with_prng_test.cc",
"src/testing/coefficient_polynomial_ciphertext_test.cc",
"src/testing/coefficient_polynomial_test.cc",
"src/testing/protobuf_matchers_test.cc",
"src/transcription_test.cc",
]
deps = [
":shell_encryption_test_library",
"//testing/gtest:gtest_main",
]
}
source_set("shell_encryption_test") {
testonly = true
public_configs = [ ":shell_encryption_config1" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
sources = [
"src/bits_util_test.cc",
"src/context_test.cc",
"src/error_params_test.cc",
"src/galois_key_test.cc",
"src/int256_test.cc",
"src/montgomery_test.cc",
"src/ntt_parameters_test.cc",
"src/polynomial_test.cc",
"src/prng/prng_test.cc",
"src/prng/single_thread_chacha_prng_test.cc",
"src/relinearization_key_test.cc",
"src/sample_error_test.cc",
"src/status_macros_test.cc",
"src/statusor_test.cc",
"src/symmetric_encryption_test.cc",
"src/symmetric_encryption_with_prng_test.cc",
"src/testing/coefficient_polynomial_ciphertext_test.cc",
"src/testing/coefficient_polynomial_test.cc",
"src/testing/protobuf_matchers_test.cc",
"src/transcription_test.cc",
]
deps = [
":shell_encryption_test_library",
"//testing/gtest:gtest_main",
]
}
test("shell_encryption_unittests") {
deps = [ ":shell_encryption_test" ]
test("shell_encryption_unittests") {
deps = [ ":shell_encryption_test" ]
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment