Merge "Fix application_sdk_versions_smoke test"
This commit is contained in:
commit
db68b4600d
|
@ -16,12 +16,14 @@
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
|
#include <android/api-level.h>
|
||||||
|
|
||||||
extern "C" uint32_t android_get_application_target_sdk_version();
|
extern "C" uint32_t android_get_application_target_sdk_version();
|
||||||
extern "C" void android_set_application_target_sdk_version(uint32_t target);
|
extern "C" void android_set_application_target_sdk_version(uint32_t target);
|
||||||
|
|
||||||
TEST(libdl, application_sdk_versions_smoke) {
|
TEST(libdl, application_sdk_versions_smoke) {
|
||||||
// Check initial values
|
// 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);
|
android_set_application_target_sdk_version(20U);
|
||||||
ASSERT_EQ(20U, android_get_application_target_sdk_version());
|
ASSERT_EQ(20U, android_get_application_target_sdk_version());
|
||||||
|
|
Loading…
Reference in New Issue