diff options
author | Colin Cross <ccross@android.com> | 2016-09-15 22:38:41 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-09-15 22:38:41 -0700 |
commit | 92e272cb1f04defd4ea4ca6869e357d72cc780f6 (patch) | |
tree | 508f032a1d4eecddaf2bcc005d10aab52e0f7a7c | |
parent | 9e5dc07bb2dbbf9b711370807f1fdae26d4125a1 (diff) | |
download | nativepower-92e272cb1f04defd4ea4ca6869e357d72cc780f6.tar.gz |
Fix warningsandroid-n-mr1-preview-2android-n-mr1-preview-1
Fix comparison sign mismatch warnings. The warnings are hidden because
libbinderwrapper's includes are in an -isystem directory, and they
include the gtest headers that define the comparison macros.
Change-Id: I65e0a118de602c7932ad5e8f65e8c7735400c01f
-rw-r--r-- | client/power_manager_client_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/power_manager_client_unittest.cc b/client/power_manager_client_unittest.cc index f27265e..8adad6d 100644 --- a/client/power_manager_client_unittest.cc +++ b/client/power_manager_client_unittest.cc @@ -46,12 +46,12 @@ class PowerManagerClientTest : public BinderTestBase { }; TEST_F(PowerManagerClientTest, Suspend) { - EXPECT_EQ(0, power_manager_->num_suspend_requests()); + EXPECT_EQ(0U, power_manager_->num_suspend_requests()); const auto kEventTime = base::TimeDelta::FromMilliseconds(123); const int kFlags = 0x456; EXPECT_TRUE(client_.Suspend(kEventTime, SuspendReason::POWER_BUTTON, kFlags)); - EXPECT_EQ(1, power_manager_->num_suspend_requests()); + EXPECT_EQ(1U, power_manager_->num_suspend_requests()); EXPECT_EQ(PowerManagerStub::ConstructSuspendRequestString( kEventTime.InMilliseconds(), static_cast<int>(SuspendReason::POWER_BUTTON), kFlags), |