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

Unified Diff: cc/ScrollbarLayerChromiumTest.cpp

Issue 10940002: Add wrapper container for a vector of OwnPtr<T> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « cc/LayerChromium.h ('k') | cc/TreeSynchronizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ScrollbarLayerChromiumTest.cpp
diff --git a/cc/ScrollbarLayerChromiumTest.cpp b/cc/ScrollbarLayerChromiumTest.cpp
index d70db4b55b9c6d7781f9d9e6c15e9032a58bd285..c6e637f172d70514120dfc815e3db0e416534fcd 100644
--- a/cc/ScrollbarLayerChromiumTest.cpp
+++ b/cc/ScrollbarLayerChromiumTest.cpp
@@ -59,8 +59,8 @@ TEST(ScrollbarLayerChromiumTest, resolveScrollLayerPointer)
OwnPtr<CCLayerImpl> ccLayerTreeRoot = TreeSynchronizer::synchronizeTrees(layerTreeRoot.get(), nullptr, 0);
- CCLayerImpl* ccChild1 = ccLayerTreeRoot->children()[0].get();
- CCScrollbarLayerImpl* ccChild2 = static_cast<CCScrollbarLayerImpl*>(ccLayerTreeRoot->children()[1].get());
+ CCLayerImpl* ccChild1 = ccLayerTreeRoot->children()[0];
+ CCScrollbarLayerImpl* ccChild2 = static_cast<CCScrollbarLayerImpl*>(ccLayerTreeRoot->children()[1]);
EXPECT_TRUE(ccChild1->scrollbarAnimationController());
EXPECT_EQ(ccChild1->horizontalScrollbarLayer(), ccChild2);
@@ -76,8 +76,8 @@ TEST(ScrollbarLayerChromiumTest, resolveScrollLayerPointer)
OwnPtr<CCLayerImpl> ccLayerTreeRoot = TreeSynchronizer::synchronizeTrees(layerTreeRoot.get(), nullptr, 0);
- CCScrollbarLayerImpl* ccChild1 = static_cast<CCScrollbarLayerImpl*>(ccLayerTreeRoot->children()[0].get());
- CCLayerImpl* ccChild2 = ccLayerTreeRoot->children()[1].get();
+ CCScrollbarLayerImpl* ccChild1 = static_cast<CCScrollbarLayerImpl*>(ccLayerTreeRoot->children()[0]);
+ CCLayerImpl* ccChild2 = ccLayerTreeRoot->children()[1];
EXPECT_TRUE(ccChild2->scrollbarAnimationController());
EXPECT_EQ(ccChild2->horizontalScrollbarLayer(), ccChild1);
@@ -103,7 +103,7 @@ TEST(ScrollbarLayerChromiumTest, scrollOffsetSynchronization)
OwnPtr<CCLayerImpl> ccLayerTreeRoot = TreeSynchronizer::synchronizeTrees(layerTreeRoot.get(), nullptr, 0);
- CCScrollbarLayerImpl* ccScrollbarLayer = static_cast<CCScrollbarLayerImpl*>(ccLayerTreeRoot->children()[1].get());
+ CCScrollbarLayerImpl* ccScrollbarLayer = static_cast<CCScrollbarLayerImpl*>(ccLayerTreeRoot->children()[1]);
EXPECT_EQ(10, ccScrollbarLayer->currentPos());
EXPECT_EQ(100, ccScrollbarLayer->totalSize());
« no previous file with comments | « cc/LayerChromium.h ('k') | cc/TreeSynchronizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698