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

Side by Side Diff: skia/ext/vector_canvas_unittest.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if !defined(OS_WIN) 7 #if !defined(OS_WIN)
8 #include <unistd.h> 8 #include <unistd.h>
9 #endif 9 #endif
10 10
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 // When true (default), vcanvas_ and pcanvas_ contents are compared and 444 // When true (default), vcanvas_ and pcanvas_ contents are compared and
445 // verified to be identical. 445 // verified to be identical.
446 bool compare_canvas_; 446 bool compare_canvas_;
447 }; 447 };
448 448
449 449
450 //////////////////////////////////////////////////////////////////////////////// 450 ////////////////////////////////////////////////////////////////////////////////
451 // Actual tests 451 // Actual tests
452 452
453 #if !defined(USE_AURA) // http://crbug.com/154358
454
453 TEST_F(VectorCanvasTest, BasicDrawing) { 455 TEST_F(VectorCanvasTest, BasicDrawing) {
454 EXPECT_EQ(Image(*vcanvas_).PercentageDifferent(Image(*pcanvas_)), 0.) 456 EXPECT_EQ(Image(*vcanvas_).PercentageDifferent(Image(*pcanvas_)), 0.)
455 << L"clean"; 457 << L"clean";
456 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("clean"))); 458 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("clean")));
457 459
458 // Clear white. 460 // Clear white.
459 { 461 {
460 vcanvas_->drawARGB(255, 255, 255, 255, SkXfermode::kSrc_Mode); 462 vcanvas_->drawARGB(255, 255, 255, 255, SkXfermode::kSrc_Mode);
461 pcanvas_->drawARGB(255, 255, 255, 255, SkXfermode::kSrc_Mode); 463 pcanvas_->drawARGB(255, 255, 255, 255, SkXfermode::kSrc_Mode);
462 } 464 }
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 958
957 { 959 {
958 vcanvas_->rotate(67); 960 vcanvas_->rotate(67);
959 pcanvas_->rotate(67); 961 pcanvas_->rotate(67);
960 vcanvas_->drawBitmap(bitmap, 20, -50, NULL); 962 vcanvas_->drawBitmap(bitmap, 20, -50, NULL);
961 pcanvas_->drawBitmap(bitmap, 20, -50, NULL); 963 pcanvas_->drawBitmap(bitmap, 20, -50, NULL);
962 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("rotate"))); 964 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("rotate")));
963 } 965 }
964 } 966 }
965 967
968 #endif // !defined(USE_AURA)
969
966 } // namespace skia 970 } // namespace skia
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698