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") { ...@@ -75,29 +75,31 @@ source_set("private_membership") {
] ]
} }
test("private_membership_unittests") { if (is_chromeos) {
testonly = true test("private_membership_unittests") {
public_configs = [ ":private_membership_config" ] testonly = true
configs -= [ "//build/config/compiler:chromium_code" ] public_configs = [ ":private_membership_config" ]
configs += [ "//build/config/compiler:no_chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
public = [ "src/internal/testing/constants.h" ] configs += [ "//build/config/compiler:no_chromium_code" ]
sources = [ public = [ "src/internal/testing/constants.h" ]
"src/internal/aes_ctr_256_with_fixed_iv_test.cc", sources = [
"src/internal/crypto_utils_test.cc", "src/internal/aes_ctr_256_with_fixed_iv_test.cc",
"src/internal/encrypted_bucket_id_test.cc", "src/internal/crypto_utils_test.cc",
"src/internal/hashed_bucket_id_test.cc", "src/internal/encrypted_bucket_id_test.cc",
"src/internal/id_utils_test.cc", "src/internal/hashed_bucket_id_test.cc",
"src/internal/oprf_utils_test.cc", "src/internal/id_utils_test.cc",
"src/internal/rlwe_id_utils_test.cc", "src/internal/oprf_utils_test.cc",
"src/internal/utils_test.cc", "src/internal/rlwe_id_utils_test.cc",
"src/membership_response_map_test.cc", "src/internal/utils_test.cc",
"src/private_membership_rlwe_client_regression_test.cc", "src/membership_response_map_test.cc",
] "src/private_membership_rlwe_client_regression_test.cc",
public_deps = [ ]
":private_membership", public_deps = [
":private_membership_proto", ":private_membership",
"//testing/gmock:gmock", ":private_membership_proto",
"//testing/gtest:gtest_main", "//testing/gmock:gmock",
"//third_party/shell-encryption:shell_encryption_test_library", "//testing/gtest:gtest_main",
] "//third_party/shell-encryption:shell_encryption_test_library",
]
}
} }
...@@ -94,63 +94,65 @@ source_set("shell_encryption") { ...@@ -94,63 +94,65 @@ source_set("shell_encryption") {
] ]
} }
source_set("shell_encryption_test_library") { if (is_chromeos) {
testonly = true source_set("shell_encryption_test_library") {
public_configs = [ ":shell_encryption_config1" ] testonly = true
configs -= [ "//build/config/compiler:chromium_code" ] public_configs = [ ":shell_encryption_config1" ]
configs += [ "//build/config/compiler:no_chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
public = [ configs += [ "//build/config/compiler:no_chromium_code" ]
"src/prng/integral_prng_testing_types.h", public = [
"src/testing/coefficient_polynomial.h", "src/prng/integral_prng_testing_types.h",
"src/testing/coefficient_polynomial_ciphertext.h", "src/testing/coefficient_polynomial.h",
"src/testing/parameters.h", "src/testing/coefficient_polynomial_ciphertext.h",
"src/testing/protobuf_matchers.h", "src/testing/parameters.h",
"src/testing/status_matchers.h", "src/testing/protobuf_matchers.h",
"src/testing/status_testing.h", "src/testing/status_matchers.h",
"src/testing/testing_prng.h", "src/testing/status_testing.h",
"src/testing/testing_utils.h", "src/testing/testing_prng.h",
] "src/testing/testing_utils.h",
public_deps = [ ]
":coefficient_polynomial_proto", public_deps = [
":shell_encryption", ":coefficient_polynomial_proto",
"//testing/gmock:gmock", ":shell_encryption",
"//testing/gtest:gtest", "//testing/gmock:gmock",
] "//testing/gtest:gtest",
} ]
}
source_set("shell_encryption_test") { source_set("shell_encryption_test") {
testonly = true testonly = true
public_configs = [ ":shell_encryption_config1" ] public_configs = [ ":shell_encryption_config1" ]
configs -= [ "//build/config/compiler:chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ]
sources = [ sources = [
"src/bits_util_test.cc", "src/bits_util_test.cc",
"src/context_test.cc", "src/context_test.cc",
"src/error_params_test.cc", "src/error_params_test.cc",
"src/galois_key_test.cc", "src/galois_key_test.cc",
"src/int256_test.cc", "src/int256_test.cc",
"src/montgomery_test.cc", "src/montgomery_test.cc",
"src/ntt_parameters_test.cc", "src/ntt_parameters_test.cc",
"src/polynomial_test.cc", "src/polynomial_test.cc",
"src/prng/prng_test.cc", "src/prng/prng_test.cc",
"src/prng/single_thread_chacha_prng_test.cc", "src/prng/single_thread_chacha_prng_test.cc",
"src/relinearization_key_test.cc", "src/relinearization_key_test.cc",
"src/sample_error_test.cc", "src/sample_error_test.cc",
"src/status_macros_test.cc", "src/status_macros_test.cc",
"src/statusor_test.cc", "src/statusor_test.cc",
"src/symmetric_encryption_test.cc", "src/symmetric_encryption_test.cc",
"src/symmetric_encryption_with_prng_test.cc", "src/symmetric_encryption_with_prng_test.cc",
"src/testing/coefficient_polynomial_ciphertext_test.cc", "src/testing/coefficient_polynomial_ciphertext_test.cc",
"src/testing/coefficient_polynomial_test.cc", "src/testing/coefficient_polynomial_test.cc",
"src/testing/protobuf_matchers_test.cc", "src/testing/protobuf_matchers_test.cc",
"src/transcription_test.cc", "src/transcription_test.cc",
] ]
deps = [ deps = [
":shell_encryption_test_library", ":shell_encryption_test_library",
"//testing/gtest:gtest_main", "//testing/gtest:gtest_main",
] ]
} }
test("shell_encryption_unittests") { test("shell_encryption_unittests") {
deps = [ ":shell_encryption_test" ] 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