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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "modules/canvas2d/CanvasRenderingContext2D.h" 5 #include "modules/canvas2d/CanvasRenderingContext2D.h"
6 6
7 #include <memory>
7 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
8 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
9 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
10 #include "core/html/HTMLCanvasElement.h" 11 #include "core/html/HTMLCanvasElement.h"
11 #include "core/html/ImageData.h" 12 #include "core/html/ImageData.h"
12 #include "core/loader/EmptyClients.h" 13 #include "core/loader/EmptyClients.h"
13 #include "core/testing/DummyPageHolder.h" 14 #include "core/testing/DummyPageHolder.h"
14 #include "modules/accessibility/AXObject.h" 15 #include "modules/accessibility/AXObject.h"
15 #include "modules/accessibility/AXObjectCacheImpl.h" 16 #include "modules/accessibility/AXObjectCacheImpl.h"
16 #include "modules/canvas2d/CanvasGradient.h" 17 #include "modules/canvas2d/CanvasGradient.h"
17 #include "modules/canvas2d/CanvasPattern.h" 18 #include "modules/canvas2d/CanvasPattern.h"
18 #include "modules/canvas2d/HitRegionOptions.h" 19 #include "modules/canvas2d/HitRegionOptions.h"
19 #include "modules/webgl/WebGLRenderingContext.h" 20 #include "modules/webgl/WebGLRenderingContext.h"
20 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 21 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
21 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
23 #include <memory>
24 24
25 using ::testing::Mock; 25 using ::testing::Mock;
26 26
27 namespace blink { 27 namespace blink {
28 28
29 class CanvasRenderingContext2DAPITest : public ::testing::Test { 29 class CanvasRenderingContext2DAPITest : public ::testing::Test {
30 protected: 30 protected:
31 CanvasRenderingContext2DAPITest(); 31 CanvasRenderingContext2DAPITest();
32 void SetUp() override; 32 void SetUp() override;
33 33
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 AXObject* axObject = axObjectCache->getOrCreate(buttonElement); 359 AXObject* axObject = axObjectCache->getOrCreate(buttonElement);
360 360
361 LayoutRect axBounds = axObject->getBoundsInFrameCoordinates(); 361 LayoutRect axBounds = axObject->getBoundsInFrameCoordinates();
362 EXPECT_EQ(25, axBounds.x().toInt()); 362 EXPECT_EQ(25, axBounds.x().toInt());
363 EXPECT_EQ(25, axBounds.y().toInt()); 363 EXPECT_EQ(25, axBounds.y().toInt());
364 EXPECT_EQ(40, axBounds.width().toInt()); 364 EXPECT_EQ(40, axBounds.width().toInt());
365 EXPECT_EQ(40, axBounds.height().toInt()); 365 EXPECT_EQ(40, axBounds.height().toInt());
366 } 366 }
367 367
368 } // namespace blink 368 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698