| Index: third_party/WebKit/Source/wtf/RefPtrTest.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/RefPtrTest.cpp b/third_party/WebKit/Source/wtf/RefPtrTest.cpp
|
| index d0d9fed8ab238c25f693e6c8c4ccfad63937bf60..564d0836f91ab2a2a940a304c6aab5b6d44c06be 100644
|
| --- a/third_party/WebKit/Source/wtf/RefPtrTest.cpp
|
| +++ b/third_party/WebKit/Source/wtf/RefPtrTest.cpp
|
| @@ -10,25 +10,23 @@
|
|
|
| namespace WTF {
|
|
|
| -TEST(RefPtrTest, Basic)
|
| -{
|
| - RefPtr<StringImpl> string;
|
| - EXPECT_TRUE(!string);
|
| - string = StringImpl::create("test");
|
| - EXPECT_TRUE(!!string);
|
| - string.clear();
|
| - EXPECT_TRUE(!string);
|
| +TEST(RefPtrTest, Basic) {
|
| + RefPtr<StringImpl> string;
|
| + EXPECT_TRUE(!string);
|
| + string = StringImpl::create("test");
|
| + EXPECT_TRUE(!!string);
|
| + string.clear();
|
| + EXPECT_TRUE(!string);
|
| }
|
|
|
| -TEST(RefPtrTest, MoveAssignmentOperator)
|
| -{
|
| - RefPtr<StringImpl> a = StringImpl::create("a");
|
| - RefPtr<StringImpl> b = StringImpl::create("b");
|
| - // FIXME: Instead of explicitly casting to RefPtr<StringImpl>&& here, we should use std::move, but that
|
| - // requires us to have a standard library that supports move semantics.
|
| - b = static_cast<RefPtr<StringImpl>&&>(a);
|
| - EXPECT_TRUE(!!b);
|
| - EXPECT_TRUE(!a);
|
| +TEST(RefPtrTest, MoveAssignmentOperator) {
|
| + RefPtr<StringImpl> a = StringImpl::create("a");
|
| + RefPtr<StringImpl> b = StringImpl::create("b");
|
| + // FIXME: Instead of explicitly casting to RefPtr<StringImpl>&& here, we should use std::move, but that
|
| + // requires us to have a standard library that supports move semantics.
|
| + b = static_cast<RefPtr<StringImpl>&&>(a);
|
| + EXPECT_TRUE(!!b);
|
| + EXPECT_TRUE(!a);
|
| }
|
|
|
| -} // namespace WTF
|
| +} // namespace WTF
|
|
|