Index: mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc |
diff --git a/mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc b/mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc |
index 45d27b97454dc5b7a7063309953e05792ce93fd1..4644b7b63f1e744e055a7ce0c4ffae15c0c646f4 100644 |
--- a/mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc |
+++ b/mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc |
@@ -24,7 +24,7 @@ TEST(SimplePlatformSharedBufferTest, Basic) { |
// Make some memory. |
scoped_refptr<SimplePlatformSharedBuffer> buffer( |
SimplePlatformSharedBuffer::Create(kNumBytes)); |
- ASSERT_TRUE(buffer.get()); |
+ ASSERT_TRUE(buffer); |
// Map it all, scribble some stuff, and then unmap it. |
{ |
@@ -100,7 +100,7 @@ TEST(SimplePlatformSharedBufferTest, Basic) { |
TEST(SimplePlatformSharedBufferTest, InvalidMappings) { |
scoped_refptr<SimplePlatformSharedBuffer> buffer( |
SimplePlatformSharedBuffer::Create(100)); |
- ASSERT_TRUE(buffer.get()); |
+ ASSERT_TRUE(buffer); |
// Zero length not allowed. |
EXPECT_FALSE(buffer->Map(0, 0)); |
@@ -133,7 +133,7 @@ TEST(SimplePlatformSharedBufferTest, TooBig) { |
SimplePlatformSharedBuffer::Create(kMaxSizeT)); |
// But, assuming |sizeof(size_t) == sizeof(void*)|, mapping all of it should |
// always fail. |
- if (buffer.get()) |
+ if (buffer) |
EXPECT_FALSE(buffer->Map(0, kMaxSizeT)); |
} |