summaryrefslogtreecommitdiffstats
path: root/tests/keymaster
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-09-04 22:17:56 -0700
committerKenny Root <kroot@android.com>2013-09-10 18:14:49 +0000
commit36ab8ed76fb751d8570d0323e6ece4c60f730703 (patch)
treecec245d190ad6e9c310fdc912a145457f89f0b4a /tests/keymaster
parentbd5015e0f3b79d8b8e7f9b1926bbf76985ac8c61 (diff)
downloadhardware_libhardware-36ab8ed76fb751d8570d0323e6ece4c60f730703.zip
hardware_libhardware-36ab8ed76fb751d8570d0323e6ece4c60f730703.tar.gz
hardware_libhardware-36ab8ed76fb751d8570d0323e6ece4c60f730703.tar.bz2
keymaster: use new version fields in hw_module
The original version of this HAL used a field in keymaster_module to represent the module's version number, but a later revision of the HAL interface added a distinguisher between HAL module and device versions. This is needed to support upgrade code in keystore. (cherry picked from commit c124b23f94a0a88e872253720c0e27594a9a9938) Bug: 10600582 Change-Id: Ia2b0cbeca5c507600228c39ec7a8402f819f8804
Diffstat (limited to 'tests/keymaster')
-rw-r--r--tests/keymaster/keymaster_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/keymaster/keymaster_test.cpp b/tests/keymaster/keymaster_test.cpp
index b3d3f35..ad89012 100644
--- a/tests/keymaster/keymaster_test.cpp
+++ b/tests/keymaster/keymaster_test.cpp
@@ -343,7 +343,7 @@ public:
ASSERT_EQ(0, keymaster_open(mod, &sDevice))
<< "Should be able to open the keymaster device";
- ASSERT_EQ(2U, sDevice->client_version)
+ ASSERT_EQ(KEYMASTER_MODULE_API_VERSION_0_2, mod->module_api_version)
<< "Keymaster should implement API version 2";
ASSERT_TRUE(sDevice->generate_keypair != NULL)