summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorXusong Wang <xusongw@google.com>2019-01-18 17:28:26 -0800
committerXusong Wang <xusongw@google.com>2019-02-08 10:17:17 -0800
commit96e68dc8e0c3ff9e8391502eaa32aadc1a63fdbf (patch)
tree46423d42c91d5093ae7a5d8414d6a35555bd5d61 /identity/support/src/cppbor_parse.cpp
parentc9ff099c014ddde52192e0c5db192158bd3be8a6 (diff)
Add VTS tests for NNAPI compilation caching.
Add the following tests for compilation caching: - validation tests - Test isCachingSupported - Test prepareModelFromCache with invalid numFd and invalid access mode - Test saveToCache with invalid numFd, invalid access mode, invalid file size, and invalid fd offset - execution test - Save a mobilenet model to cache and then retrieve and run accuracy evaluation. - The same test but the file offsets for prepareModelFromCache is not at zero. - security test - CompilationCachingSecurityTest.CorruptedSecuritySensitiveCache Randomly flip one bit of security-sensitive cache. - CompilationCachingSecurityTest.WrongLengthSecuritySensitiveCache Randomly append bytes to security-sensitive cache. - CompilationCachingSecurityTest.WrongToken Randomly flip one bit of cache token. Bug: 119616526 Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can read and write cache entries Change-Id: Iae9211cb28ce972b29572dfedd45d1ade4dfdaf5 Merged-In: Iae9211cb28ce972b29572dfedd45d1ade4dfdaf5 (cherry picked from commit 3405878e5e0eb85549363b69b8dffb3f91c7b8ff)
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions