diff options
| author | 2017-08-10 06:12:46 +0000 | |
|---|---|---|
| committer | 2017-08-10 06:12:46 +0000 | |
| commit | 436d8b4aece4e87a987ee85e98428134e86d5d80 (patch) | |
| tree | 0db6d654728825bc2e43bc956786b77c9095c8c9 | |
| parent | e89483f1bda1468a8f58fc8bcd8477a7d4cb0c92 (diff) | |
| parent | c165493cfe23241004666ec8885236b35c6e1233 (diff) | |
Cast binder data type to uint64_t in high bits test am: 7e04edd5b3
am: c165493cfe
Change-Id: If87350a981f4eab3418a0a5c1376c66f19b9fed6
| -rw-r--r-- | libs/binder/tests/binderLibTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/binder/tests/binderLibTest.cpp b/libs/binder/tests/binderLibTest.cpp index 757291cd2a..a04869ae62 100644 --- a/libs/binder/tests/binderLibTest.cpp +++ b/libs/binder/tests/binderLibTest.cpp @@ -681,10 +681,10 @@ TEST_F(BinderLibTest, CheckHandleZeroBinderHighBitsZeroCookie) { const flat_binder_object *fb = reply.readObject(false); ASSERT_TRUE(fb != NULL); - EXPECT_EQ(fb->type, BINDER_TYPE_HANDLE); - EXPECT_EQ(ProcessState::self()->getStrongProxyForHandle(fb->handle), m_server); - EXPECT_EQ(fb->cookie, (binder_uintptr_t)0); - EXPECT_EQ(fb->binder >> 32, (binder_uintptr_t)0); + EXPECT_EQ(BINDER_TYPE_HANDLE, fb->type); + EXPECT_EQ(m_server, ProcessState::self()->getStrongProxyForHandle(fb->handle)); + EXPECT_EQ((binder_uintptr_t)0, fb->cookie); + EXPECT_EQ((uint64_t)0, (uint64_t)fb->binder >> 32); } TEST_F(BinderLibTest, FreedBinder) { |