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 "fpdfsdk/include/cba_annotiterator.h" | 5 #include "fpdfsdk/cba_annotiterator.h" |
6 #include "fpdfsdk/include/cpdfsdk_annot.h" | 6 #include "fpdfsdk/cpdfsdk_annot.h" |
7 #include "fpdfsdk/include/cpdfsdk_document.h" | 7 #include "fpdfsdk/cpdfsdk_document.h" |
8 #include "fpdfsdk/include/fsdk_define.h" | 8 #include "fpdfsdk/fsdk_define.h" |
9 #include "testing/embedder_test.h" | 9 #include "testing/embedder_test.h" |
10 #include "testing/embedder_test_mock_delegate.h" | 10 #include "testing/embedder_test_mock_delegate.h" |
11 #include "testing/embedder_test_timer_handling_delegate.h" | 11 #include "testing/embedder_test_timer_handling_delegate.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 void CheckRect(const CFX_FloatRect& actual, const CFX_FloatRect& expected) { | 17 void CheckRect(const CFX_FloatRect& actual, const CFX_FloatRect& expected) { |
18 EXPECT_EQ(expected.left, actual.left); | 18 EXPECT_EQ(expected.left, actual.left); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 CheckRect(pAnnot->GetRect(), RightTop); | 116 CheckRect(pAnnot->GetRect(), RightTop); |
117 pAnnot = iter.GetPrevAnnot(pAnnot); | 117 pAnnot = iter.GetPrevAnnot(pAnnot); |
118 CheckRect(pAnnot->GetRect(), LeftBottom); | 118 CheckRect(pAnnot->GetRect(), LeftBottom); |
119 pAnnot = iter.GetPrevAnnot(pAnnot); | 119 pAnnot = iter.GetPrevAnnot(pAnnot); |
120 EXPECT_EQ(iter.GetLastAnnot(), pAnnot); | 120 EXPECT_EQ(iter.GetLastAnnot(), pAnnot); |
121 } | 121 } |
122 UnloadPage(page2); | 122 UnloadPage(page2); |
123 UnloadPage(page1); | 123 UnloadPage(page1); |
124 UnloadPage(page0); | 124 UnloadPage(page0); |
125 } | 125 } |
OLD | NEW |