OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium 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 "core/fxge/cfx_fxgedevice.h" | 5 #include "core/fxge/cfx_fxgedevice.h" |
6 #include "core/fxge/cfx_graphstatedata.h" | 6 #include "core/fxge/cfx_graphstatedata.h" |
7 #include "core/fxge/cfx_pathdata.h" | 7 #include "core/fxge/cfx_pathdata.h" |
8 #include "core/fxge/cfx_renderdevice.h" | 8 #include "core/fxge/cfx_renderdevice.h" |
9 #include "core/fxge/skia/fx_skia_device.h" | 9 #include "core/fxge/skia/fx_skia_device.h" |
10 #include "fpdfsdk/include/fsdk_define.h" | 10 #include "fpdfsdk/fsdk_define.h" |
11 #include "public/fpdfview.h" | 11 #include "public/fpdfview.h" |
12 #include "testing/fx_string_testhelpers.h" | 12 #include "testing/fx_string_testhelpers.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/skia/include/core/SkPictureRecorder.h" | 14 #include "third_party/skia/include/core/SkPictureRecorder.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 struct State { | 18 struct State { |
19 enum class Change { kNo, kYes }; | 19 enum class Change { kNo, kYes }; |
20 enum class Save { kNo, kYes }; | 20 enum class Save { kNo, kYes }; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 Harness(&CommonTest, | 157 Harness(&CommonTest, |
158 {State::Change::kNo, State::Save::kYes, State::Clip::kDifferentMatrix, | 158 {State::Change::kNo, State::Save::kYes, State::Clip::kDifferentMatrix, |
159 State::Graphic::kText, 0xFF445566}); | 159 State::Graphic::kText, 0xFF445566}); |
160 Harness(&CommonTest, {State::Change::kNo, State::Save::kYes, | 160 Harness(&CommonTest, {State::Change::kNo, State::Save::kYes, |
161 State::Clip::kSame, State::Graphic::kText, 0xFF445566}); | 161 State::Clip::kSame, State::Graphic::kText, 0xFF445566}); |
162 } | 162 } |
163 | 163 |
164 TEST(fxge, SkiaStateOOSClip) { | 164 TEST(fxge, SkiaStateOOSClip) { |
165 Harness(&OutOfSequenceClipTest, {}); | 165 Harness(&OutOfSequenceClipTest, {}); |
166 } | 166 } |
OLD | NEW |