Commit 88eee8b5 by Abseil Team Committed by Copybara-Service

Fix sign conversion warnings in memory_test.cc.

Bug: chromium:1292951
PiperOrigin-RevId: 482767615
Change-Id: Ia1e812fa7bde8753b17046ed325542ad41f30f9b
parent 85cc4947
...@@ -600,7 +600,7 @@ TEST(AllocatorTraits, FunctionsFull) { ...@@ -600,7 +600,7 @@ TEST(AllocatorTraits, FunctionsFull) {
EXPECT_CALL(mock, allocate(13, &hint)).WillRepeatedly(Return(&y)); EXPECT_CALL(mock, allocate(13, &hint)).WillRepeatedly(Return(&y));
EXPECT_CALL(mock, construct(&x, &trace)); EXPECT_CALL(mock, construct(&x, &trace));
EXPECT_CALL(mock, destroy(&x)); EXPECT_CALL(mock, destroy(&x));
EXPECT_CALL(mock, max_size()).WillRepeatedly(Return(17)); EXPECT_CALL(mock, max_size()).WillRepeatedly(Return(17u));
EXPECT_CALL(mock, select_on_container_copy_construction()) EXPECT_CALL(mock, select_on_container_copy_construction())
.WillRepeatedly(Return(FullMockAllocator(23))); .WillRepeatedly(Return(FullMockAllocator(23)));
...@@ -613,7 +613,7 @@ TEST(AllocatorTraits, FunctionsFull) { ...@@ -613,7 +613,7 @@ TEST(AllocatorTraits, FunctionsFull) {
Traits::destroy(mock, &x); Traits::destroy(mock, &x);
EXPECT_EQ(1, trace); EXPECT_EQ(1, trace);
EXPECT_EQ(17, Traits::max_size(mock)); EXPECT_EQ(17u, Traits::max_size(mock));
EXPECT_EQ(0, mock.value); EXPECT_EQ(0, mock.value);
EXPECT_EQ(23, Traits::select_on_container_copy_construction(mock).value); EXPECT_EQ(23, Traits::select_on_container_copy_construction(mock).value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment