aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-03-02 16:59:53 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-02 22:39:59 +0000
commit1ebeefe24661ff353ebd8b22e2ac11997ee39aab (patch)
treeafbb0b7b464750023fa91f8d4d783eb61171e418 /tests
parentc931d6e84bdfa0140eedde6e278a81fff1034a60 (diff)
IWYU for test files starting with 'A'.
While testing some changes to iwyu, started fixing some files. Made it to AsADashTest.cpp before running into https://github.com/include-what-you-use/include-what-you-use/issues/364 Change-Id: I42b65df4f1f8116e0ea1b2cd774651990db1b132 Reviewed-on: https://skia-review.googlesource.com/111861 Reviewed-by: Ben Wagner <bungeman@google.com> Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/AAClipTest.cpp13
-rw-r--r--tests/AndroidCodecTest.cpp15
-rw-r--r--tests/AnimatedImageTest.cpp15
-rw-r--r--tests/AnnotationTest.cpp11
-rw-r--r--tests/ApplyGammaTest.cpp21
-rw-r--r--tests/ArenaAllocTest.cpp7
-rw-r--r--tests/AsADashTest.cpp10
7 files changed, 78 insertions, 14 deletions
diff --git a/tests/AAClipTest.cpp b/tests/AAClipTest.cpp
index 18cc30c745..b7ec31bc43 100644
--- a/tests/AAClipTest.cpp
+++ b/tests/AAClipTest.cpp
@@ -6,14 +6,25 @@
*/
#include "SkAAClip.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
+#include "SkColor.h"
+#include "SkImageInfo.h"
+#include "SkMalloc.h"
#include "SkMask.h"
+#include "SkMatrix.h"
#include "SkPath.h"
+#include "SkRRect.h"
#include "SkRandom.h"
#include "SkRasterClip.h"
-#include "SkRRect.h"
+#include "SkRect.h"
+#include "SkRegion.h"
+#include "SkScalar.h"
+#include "SkTypes.h"
#include "Test.h"
+#include <string.h>
+
static bool operator==(const SkMask& a, const SkMask& b) {
if (a.fFormat != b.fFormat || a.fBounds != b.fBounds) {
return false;
diff --git a/tests/AndroidCodecTest.cpp b/tests/AndroidCodecTest.cpp
index d383713bb9..430b0b7178 100644
--- a/tests/AndroidCodecTest.cpp
+++ b/tests/AndroidCodecTest.cpp
@@ -5,15 +5,26 @@
* found in the LICENSE file.
*/
+#include "Resources.h"
#include "SkAndroidCodec.h"
+#include "SkBitmap.h"
#include "SkCodec.h"
#include "SkCodecImageGenerator.h"
+#include "SkColor.h"
+#include "SkData.h"
#include "SkEncodedImageFormat.h"
+#include "SkImageGenerator.h"
+#include "SkImageInfo.h"
#include "SkPixmapPriv.h"
-
-#include "Resources.h"
+#include "SkRefCnt.h"
+#include "SkSize.h"
+#include "SkString.h"
+#include "SkTypes.h"
#include "Test.h"
+#include <algorithm>
+#include <memory>
+
static SkISize times(const SkISize& size, float factor) {
return { (int) (size.width() * factor), (int) (size.height() * factor) };
}
diff --git a/tests/AnimatedImageTest.cpp b/tests/AnimatedImageTest.cpp
index 07a63474cf..e0a640b7d8 100644
--- a/tests/AnimatedImageTest.cpp
+++ b/tests/AnimatedImageTest.cpp
@@ -5,17 +5,26 @@
* found in the LICENSE file.
*/
+#include "CodecPriv.h"
+#include "Resources.h"
#include "SkAndroidCodec.h"
#include "SkAnimatedImage.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkCodec.h"
+#include "SkColor.h"
+#include "SkData.h"
+#include "SkImageInfo.h"
+#include "SkRefCnt.h"
+#include "SkSize.h"
+#include "SkString.h"
+#include "SkTypes.h"
#include "SkUnPreMultiply.h"
-
-#include "CodecPriv.h"
-#include "Resources.h"
#include "Test.h"
#include "sk_tool_utils.h"
+#include <algorithm>
+#include <memory>
#include <vector>
DEF_TEST(AnimatedImage, r) {
diff --git a/tests/AnnotationTest.cpp b/tests/AnnotationTest.cpp
index e55cc36ba8..73b15c6e73 100644
--- a/tests/AnnotationTest.cpp
+++ b/tests/AnnotationTest.cpp
@@ -4,13 +4,24 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
#include "SkAnnotation.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
+#include "SkColor.h"
#include "SkData.h"
#include "SkDocument.h"
+#include "SkPoint.h"
+#include "SkRect.h"
+#include "SkRefCnt.h"
+#include "SkScalar.h"
#include "SkStream.h"
+#include "SkTypes.h"
#include "Test.h"
+#include <string.h>
+#include <memory>
+
/** Returns true if data (may contain null characters) contains needle (null
* terminated). */
static bool ContainsString(const char* data, size_t dataSize, const char* needle) {
diff --git a/tests/ApplyGammaTest.cpp b/tests/ApplyGammaTest.cpp
index 4147be7f41..8eb35e19a3 100644
--- a/tests/ApplyGammaTest.cpp
+++ b/tests/ApplyGammaTest.cpp
@@ -5,16 +5,31 @@
* found in the LICENSE file.
*/
-#include <initializer_list>
-#include "Test.h"
+#include "SkTypes.h"
#if SK_SUPPORT_GPU
-#include "GrContext.h"
+#include "GrCaps.h"
+#include "GrContext.h"
+#include "GrContextFactory.h"
+#include "GrShaderCaps.h"
+#include "GrTypes.h"
+#include "SkBitmap.h"
+#include "SkBlendMode.h"
#include "SkCanvas.h"
+#include "SkColor.h"
#include "SkColorFilter.h"
+#include "SkColorPriv.h"
+#include "SkImageInfo.h"
+#include "SkPaint.h"
+#include "SkRefCnt.h"
+#include "SkScalar.h"
#include "SkSurface.h"
+#include "SkTemplates.h"
#include "SkUtils.h"
+#include "Test.h"
+
+#include <math.h>
/** convert 0..1 linear value to 0..1 srgb */
static float linear_to_srgb(float linear) {
diff --git a/tests/ArenaAllocTest.cpp b/tests/ArenaAllocTest.cpp
index 137e60e135..e4da0b8ad4 100644
--- a/tests/ArenaAllocTest.cpp
+++ b/tests/ArenaAllocTest.cpp
@@ -5,9 +5,14 @@
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkArenaAlloc.h"
#include "SkRefCnt.h"
+#include "SkTypes.h"
+#include "Test.h"
+
+#include <memory>
+#include <new>
+#include <type_traits>
namespace {
diff --git a/tests/AsADashTest.cpp b/tests/AsADashTest.cpp
index 2077b66425..b612f23c18 100644
--- a/tests/AsADashTest.cpp
+++ b/tests/AsADashTest.cpp
@@ -5,11 +5,13 @@
* found in the LICENSE file.
*/
-#include "Test.h"
-
-#include "SkPathEffect.h"
-#include "SkDashPathEffect.h"
#include "SkCornerPathEffect.h"
+#include "SkDashPathEffect.h"
+#include "SkPathEffect.h"
+#include "SkRefCnt.h"
+#include "SkScalar.h"
+#include "SkTemplates.h"
+#include "Test.h"
DEF_TEST(AsADashTest_noneDash, reporter) {
sk_sp<SkPathEffect> pe(SkCornerPathEffect::Make(1.0));