Fix application_sdk_versions_smoke test
Bug: http://b/21364029 Change-Id: I9716d6b0ea7fae6483629a290dbe695b68526588
This commit is contained in:
parent
07f4f5f9ed
commit
79b3877a13
@ -16,12 +16,14 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <android/api-level.h>
|
||||
|
||||
extern "C" uint32_t android_get_application_target_sdk_version();
|
||||
extern "C" void android_set_application_target_sdk_version(uint32_t target);
|
||||
|
||||
TEST(libdl, application_sdk_versions_smoke) {
|
||||
// Check initial values
|
||||
ASSERT_EQ(0U, android_get_application_target_sdk_version());
|
||||
ASSERT_EQ(static_cast<uint32_t>(__ANDROID_API__), android_get_application_target_sdk_version());
|
||||
|
||||
android_set_application_target_sdk_version(20U);
|
||||
ASSERT_EQ(20U, android_get_application_target_sdk_version());
|
||||
|
Loading…
x
Reference in New Issue
Block a user