Merge "Fix application_sdk_versions_smoke test"

This commit is contained in:
Dmitriy Ivanov 2015-06-11 00:03:45 +00:00 committed by Gerrit Code Review
commit db68b4600d
1 changed files with 3 additions and 1 deletions

View File

@ -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());