summaryrefslogtreecommitdiff
path: root/security/keymint/support/remote_prov_utils_test.cpp
diff options
context:
space:
mode:
authorTommy Chiu <tommychiu@google.com>2022-03-09 04:24:46 +0000
committerTommy Chiu <tommychiu@google.com>2022-03-10 12:17:39 +0800
commitcb7d3d075949ca400eed3fbcd0100248302c1778 (patch)
treed51f2295da7592e8419fa0a0b6359bcd5eab2ec5 /security/keymint/support/remote_prov_utils_test.cpp
parent26423c74aac10bbb3e2c634e4c3f99e8d7151875 (diff)
remote_prov_utils: Add instance name in the JSON output
Bug: 223509807 Test: libkeymint_remote_prov_support_test Change-Id: I45d2ee46f6fe3c8a7da55c7cc0b04fc007ddea43
Diffstat (limited to 'security/keymint/support/remote_prov_utils_test.cpp')
-rw-r--r--security/keymint/support/remote_prov_utils_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/keymint/support/remote_prov_utils_test.cpp b/security/keymint/support/remote_prov_utils_test.cpp
index e1c4467a64..0250cd6c7d 100644
--- a/security/keymint/support/remote_prov_utils_test.cpp
+++ b/security/keymint/support/remote_prov_utils_test.cpp
@@ -185,13 +185,13 @@ TEST(RemoteProvUtilsTest, JsonEncodeCsr) {
cppbor::Array array;
array.add(1);
- auto [json, error] = jsonEncodeCsrWithBuild(array);
+ auto [json, error] = jsonEncodeCsrWithBuild(std::string("test"), array);
ASSERT_TRUE(error.empty()) << error;
std::string expected = R"({"build_fingerprint":")" +
::android::base::GetProperty("ro.build.fingerprint", /*default=*/"") +
- R"(","csr":"gQE="})";
+ R"(","csr":"gQE=","name":"test"})";
ASSERT_EQ(json, expected);
}