Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(884)

Unified Diff: third_party/WebKit/Source/wtf/PassRefPtrTest.cpp

Issue 2771783003: Move wtf_unittests to platform/wtf/. (Closed)
Patch Set: Rebase. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/OptionalTest.cpp ('k') | third_party/WebKit/Source/wtf/RefPtrTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/PassRefPtrTest.cpp
diff --git a/third_party/WebKit/Source/wtf/PassRefPtrTest.cpp b/third_party/WebKit/Source/wtf/PassRefPtrTest.cpp
deleted file mode 100644
index e912663690cfa33b8b54b0bd5e9d48fff5f9d981..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/wtf/PassRefPtrTest.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "wtf/PassRefPtr.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "wtf/RefCounted.h"
-
-namespace WTF {
-
-class RefCountedClass : public RefCounted<RefCountedClass> {};
-
-TEST(PassRefPtrTest, MoveConstructor) {
- PassRefPtr<RefCountedClass> oldPassRefPtr = adoptRef(new RefCountedClass());
- RefCountedClass* rawPtr = oldPassRefPtr.get();
- EXPECT_EQ(rawPtr->refCount(), 1);
- PassRefPtr<RefCountedClass> newPassRefPtr(std::move(oldPassRefPtr));
- EXPECT_EQ(oldPassRefPtr.get(), nullptr);
- EXPECT_EQ(newPassRefPtr.get(), rawPtr);
- EXPECT_EQ(rawPtr->refCount(), 1);
-}
-
-} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/OptionalTest.cpp ('k') | third_party/WebKit/Source/wtf/RefPtrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698