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

Unified Diff: sky/engine/platform/graphics/GraphicsContextTest.cpp

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « skia/skia_chrome.gypi ('k') | testing/android/junit/java/src/org/chromium/testing/local/GtestFilter.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/graphics/GraphicsContextTest.cpp
diff --git a/sky/engine/platform/graphics/GraphicsContextTest.cpp b/sky/engine/platform/graphics/GraphicsContextTest.cpp
index fa5e7131fe3a0cd83dc5de207f5878967eeef3c9..f8f6c2580a6f4f7b973938a7a0e431c70a0e66c8 100644
--- a/sky/engine/platform/graphics/GraphicsContextTest.cpp
+++ b/sky/engine/platform/graphics/GraphicsContextTest.cpp
@@ -1179,7 +1179,7 @@ TEST(GraphicsContextTest, DisplayList)
EXPECT_TRUE(canvas2);
EXPECT_NE(canvas1, canvas2);
- EXPECT_EQ(1, canvas1->getRefCnt());
+ EXPECT_TRUE(canvas1->unique());
canvas1->unref();
EXPECT_TRUE(dl->isRecording());
@@ -1192,7 +1192,7 @@ TEST(GraphicsContextTest, DisplayList)
dl->endRecording();
pic = dl->picture();
EXPECT_TRUE(pic);
- EXPECT_EQ(1, pic->getRefCnt());
+ EXPECT_TRUE(pic->unique());
}
} // namespace
« no previous file with comments | « skia/skia_chrome.gypi ('k') | testing/android/junit/java/src/org/chromium/testing/local/GtestFilter.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698