diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2015-06-10 16:55:50 -0700 |
---|---|---|
committer | Dmitriy Ivanov <dimitry@google.com> | 2015-06-10 16:55:50 -0700 |
commit | 79b3877a137510946ddd39ab71c0badf1a769c11 (patch) | |
tree | 8fd6994c333e625f14d3ad41becfe70159d8f8db /tests | |
parent | 07f4f5f9edc33d22c41f51224f8be0c0a51e5b6b (diff) | |
download | bionic-79b3877a137510946ddd39ab71c0badf1a769c11.zip bionic-79b3877a137510946ddd39ab71c0badf1a769c11.tar.gz bionic-79b3877a137510946ddd39ab71c0badf1a769c11.tar.bz2 |
Fix application_sdk_versions_smoke test
Bug: http://b/21364029
Change-Id: I9716d6b0ea7fae6483629a290dbe695b68526588
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libdl_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/libdl_test.cpp b/tests/libdl_test.cpp index 9aab87b..b162edc 100644 --- a/tests/libdl_test.cpp +++ b/tests/libdl_test.cpp @@ -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()); |