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

Side by Side Diff: core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp

Issue 1805603002: core/include/fdpfapi cleanup Part I. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_object.cpp ('k') | core/fpdfapi/fpdf_parser/cpdf_parser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/include/fpdfapi/cpdf_array.h" 5 #include "core/fpdfapi/fpdf_parser/cpdf_boolean.h"
6 #include "core/include/fpdfapi/cpdf_boolean.h" 6 #include "core/fpdfapi/fpdf_parser/cpdf_null.h"
7 #include "core/include/fpdfapi/cpdf_dictionary.h" 7 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
8 #include "core/include/fpdfapi/cpdf_name.h" 8 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
9 #include "core/include/fpdfapi/cpdf_null.h" 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_name.h"
10 #include "core/include/fpdfapi/cpdf_number.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h"
11 #include "core/include/fpdfapi/cpdf_reference.h" 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h"
12 #include "core/include/fpdfapi/cpdf_stream.h" 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h"
13 #include "core/include/fpdfapi/cpdf_string.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h"
14 14
15 #include <memory> 15 #include <memory>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "core/include/fpdfapi/cpdf_indirect_object_holder.h" 19 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h"
20 #include "core/include/fxcrt/fx_basic.h" 20 #include "core/include/fxcrt/fx_basic.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 namespace { 23 namespace {
24 24
25 using ScopedArray = std::unique_ptr<CPDF_Array, ReleaseDeleter<CPDF_Array>>; 25 using ScopedArray = std::unique_ptr<CPDF_Array, ReleaseDeleter<CPDF_Array>>;
26 26
27 void TestArrayAccessors(const CPDF_Array* arr, 27 void TestArrayAccessors(const CPDF_Array* arr,
28 size_t index, 28 size_t index,
29 const char* str_val, 29 const char* str_val,
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 EXPECT_EQ(arr->GetCount(), arr1->GetCount()); 767 EXPECT_EQ(arr->GetCount(), arr1->GetCount());
768 for (size_t i = 0; i < arr->GetCount(); ++i) { 768 for (size_t i = 0; i < arr->GetCount(); ++i) {
769 EXPECT_EQ(CPDF_Object::REFERENCE, arr->GetElement(i)->GetType()); 769 EXPECT_EQ(CPDF_Object::REFERENCE, arr->GetElement(i)->GetType());
770 EXPECT_EQ(indirect_objs[i], arr->GetElement(i)->GetDirect()); 770 EXPECT_EQ(indirect_objs[i], arr->GetElement(i)->GetDirect());
771 EXPECT_EQ(indirect_objs[i], arr->GetElementValue(i)); 771 EXPECT_EQ(indirect_objs[i], arr->GetElementValue(i));
772 EXPECT_EQ(CPDF_Object::REFERENCE, arr1->GetElement(i)->GetType()); 772 EXPECT_EQ(CPDF_Object::REFERENCE, arr1->GetElement(i)->GetType());
773 EXPECT_EQ(indirect_objs[i], arr1->GetElement(i)->GetDirect()); 773 EXPECT_EQ(indirect_objs[i], arr1->GetElement(i)->GetDirect());
774 EXPECT_EQ(indirect_objs[i], arr1->GetElementValue(i)); 774 EXPECT_EQ(indirect_objs[i], arr1->GetElementValue(i));
775 } 775 }
776 } 776 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_object.cpp ('k') | core/fpdfapi/fpdf_parser/cpdf_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698