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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DUsageTrackingTest.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DUsageTrackingTest.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DUsageTrackingTest.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DUsageTrackingTest.cpp
index f4abf4595bbf646b5a8541e18ff5267820003286..e5064591a99a4f2013bc94f238d1b0450a4e201e 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DUsageTrackingTest.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DUsageTrackingTest.cpp
@@ -247,8 +247,9 @@ TEST_F(CanvasRenderingContextUsageTrackingTest, FillTracking) {
StringOrCanvasGradientOrCanvasPattern::fromCanvasGradient(gradient));
context2d()->fillRect(10, 10, 100, 20);
EXPECT_EQ(1, context2d()->getUsage().numLinearGradients);
- EXPECT_NEAR(100 * 20, context2d()->getUsage().boundingBoxAreaFillType
- [BaseRenderingContext2D::LinearGradientFillType],
+ EXPECT_NEAR(100 * 20,
+ context2d()->getUsage().boundingBoxAreaFillType
+ [BaseRenderingContext2D::LinearGradientFillType],
1.0);
NonThrowableExceptionState exceptionState;
@@ -259,8 +260,9 @@ TEST_F(CanvasRenderingContextUsageTrackingTest, FillTracking) {
context2d()->fillRect(10, 10, 100, 20);
EXPECT_EQ(1, context2d()->getUsage().numLinearGradients);
EXPECT_EQ(1, context2d()->getUsage().numRadialGradients);
- EXPECT_NEAR(100 * 20, context2d()->getUsage().boundingBoxAreaFillType
- [BaseRenderingContext2D::RadialGradientFillType],
+ EXPECT_NEAR(100 * 20,
+ context2d()->getUsage().boundingBoxAreaFillType
+ [BaseRenderingContext2D::RadialGradientFillType],
1.0);
// create pattern
@@ -292,12 +294,14 @@ TEST_F(CanvasRenderingContextUsageTrackingTest, FillTracking) {
0,
context2d()->getUsage().numDrawCalls[BaseRenderingContext2D::StrokeText]);
EXPECT_EQ(0, context2d()->getUsage().numPutImageDataCalls);
- EXPECT_EQ(0, context2d()
- ->getUsage()
- .numDrawCalls[BaseRenderingContext2D::DrawVectorImage]);
- EXPECT_EQ(0, context2d()
- ->getUsage()
- .numDrawCalls[BaseRenderingContext2D::DrawBitmapImage]);
+ EXPECT_EQ(0,
+ context2d()
+ ->getUsage()
+ .numDrawCalls[BaseRenderingContext2D::DrawVectorImage]);
+ EXPECT_EQ(0,
+ context2d()
+ ->getUsage()
+ .numDrawCalls[BaseRenderingContext2D::DrawBitmapImage]);
EXPECT_EQ(0, context2d()->getUsage().numGetImageDataCalls);
}
@@ -362,8 +366,9 @@ TEST_F(CanvasRenderingContextUsageTrackingTest, StrokeTracking) {
StringOrCanvasGradientOrCanvasPattern::fromCanvasGradient(gradient));
context2d()->strokeRect(10, 10, 100, 100);
EXPECT_EQ(1, context2d()->getUsage().numLinearGradients);
- EXPECT_NEAR(100 * 100, context2d()->getUsage().boundingBoxAreaFillType
- [BaseRenderingContext2D::LinearGradientFillType],
+ EXPECT_NEAR(100 * 100,
+ context2d()->getUsage().boundingBoxAreaFillType
+ [BaseRenderingContext2D::LinearGradientFillType],
1.0);
// create pattern
@@ -395,12 +400,14 @@ TEST_F(CanvasRenderingContextUsageTrackingTest, StrokeTracking) {
0,
context2d()->getUsage().numDrawCalls[BaseRenderingContext2D::FillText]);
EXPECT_EQ(0, context2d()->getUsage().numPutImageDataCalls);
- EXPECT_EQ(0, context2d()
- ->getUsage()
- .numDrawCalls[BaseRenderingContext2D::DrawVectorImage]);
- EXPECT_EQ(0, context2d()
- ->getUsage()
- .numDrawCalls[BaseRenderingContext2D::DrawBitmapImage]);
+ EXPECT_EQ(0,
+ context2d()
+ ->getUsage()
+ .numDrawCalls[BaseRenderingContext2D::DrawVectorImage]);
+ EXPECT_EQ(0,
+ context2d()
+ ->getUsage()
+ .numDrawCalls[BaseRenderingContext2D::DrawBitmapImage]);
EXPECT_EQ(0, context2d()->getUsage().numGetImageDataCalls);
}
@@ -436,8 +443,9 @@ TEST_F(CanvasRenderingContextUsageTrackingTest, ImageTracking) {
->getUsage()
.boundingBoxAreaDrawCalls[BaseRenderingContext2D::DrawVectorImage],
0.1);
- EXPECT_NEAR(0.0, context2d()->getUsage().boundingBoxPerimeterDrawCalls
- [BaseRenderingContext2D::DrawVectorImage],
+ EXPECT_NEAR(0.0,
+ context2d()->getUsage().boundingBoxPerimeterDrawCalls
+ [BaseRenderingContext2D::DrawVectorImage],
0.1);
context2d()->setFilter("blur(5px)");

Powered by Google App Engine
This is Rietveld 408576698