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

Unified Diff: cc/resources/picture_unittest.cc

Issue 315393002: Record SkPicture with correct LCD text setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better unittest Created 6 years, 6 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
Index: cc/resources/picture_unittest.cc
diff --git a/cc/resources/picture_unittest.cc b/cc/resources/picture_unittest.cc
index 1367c5fd89a2ec4d1405caa6906a576f747703cb..68e999de81b7cb071c36e76f8d8c52b23351c79d 100644
--- a/cc/resources/picture_unittest.cc
+++ b/cc/resources/picture_unittest.cc
@@ -57,6 +57,7 @@ TEST(PictureTest, AsBase64String) {
&content_layer_client,
tile_grid_info,
false,
+ false,
0,
kRecordingModes[i]);
scoped_ptr<base::Value> serialized_one_rect(one_rect_picture->AsValue());
@@ -89,6 +90,7 @@ TEST(PictureTest, AsBase64String) {
&content_layer_client,
tile_grid_info,
false,
+ false,
0,
Picture::RECORD_NORMALLY);
@@ -152,6 +154,7 @@ TEST(PictureTest, PixelRefIterator) {
&content_layer_client,
tile_grid_info,
true,
+ false,
0,
Picture::RECORD_NORMALLY);
@@ -253,6 +256,7 @@ TEST(PictureTest, PixelRefIteratorNonZeroLayer) {
&content_layer_client,
tile_grid_info,
true,
+ false,
0,
Picture::RECORD_NORMALLY);
@@ -377,6 +381,7 @@ TEST(PictureTest, PixelRefIteratorOnePixelQuery) {
&content_layer_client,
tile_grid_info,
true,
+ false,
0,
Picture::RECORD_NORMALLY);
@@ -427,6 +432,7 @@ TEST(PictureTest, CreateFromSkpValue) {
&content_layer_client,
tile_grid_info,
false,
+ false,
0,
Picture::RECORD_NORMALLY);
scoped_ptr<base::Value> serialized_one_rect(
@@ -467,6 +473,7 @@ TEST(PictureTest, RecordingModes) {
&content_layer_client,
tile_grid_info,
false,
+ false,
0,
Picture::RECORD_NORMALLY);
EXPECT_TRUE(content_layer_client.last_canvas() != NULL);
@@ -478,6 +485,7 @@ TEST(PictureTest, RecordingModes) {
&content_layer_client,
tile_grid_info,
false,
+ false,
0,
Picture::RECORD_WITH_SK_NULL_CANVAS);
EXPECT_TRUE(content_layer_client.last_canvas() != NULL);
@@ -489,6 +497,7 @@ TEST(PictureTest, RecordingModes) {
&content_layer_client,
tile_grid_info,
false,
+ false,
0,
Picture::RECORD_WITH_PAINTING_DISABLED);
EXPECT_TRUE(content_layer_client.last_canvas() != NULL);
@@ -500,6 +509,7 @@ TEST(PictureTest, RecordingModes) {
&content_layer_client,
tile_grid_info,
false,
+ false,
0,
Picture::RECORD_WITH_SKRECORD);
EXPECT_TRUE(content_layer_client.last_canvas() != NULL);

Powered by Google App Engine
This is Rietveld 408576698