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

Side by Side Diff: core/src/fpdfdoc/doc_basic_unittest.cpp

Issue 1776913007: Split fpdf_parser_objects.cpp into per-class .cpp/.h files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Address comments 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/src/fpdfdoc/doc_basic.cpp ('k') | core/src/fpdfdoc/doc_bookmark.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/fpdfdoc/fpdf_doc.h" 5 #include "core/include/fpdfdoc/fpdf_doc.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "core/include/fpdfapi/cpdf_string.h"
11 #include "core/include/fpdfapi/cpdf_name.h"
10 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
11 #include "testing/test_support.h" 13 #include "testing/test_support.h"
12 14
13 namespace { 15 namespace {
14 16
15 using ScopedObj = std::unique_ptr<CPDF_Object, ReleaseDeleter<CPDF_Object>>; 17 using ScopedObj = std::unique_ptr<CPDF_Object, ReleaseDeleter<CPDF_Object>>;
16 using ScopedDict = 18 using ScopedDict =
17 std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>>; 19 std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>>;
18 } 20 }
19 21
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 file_spec2.SetFileName(test_data.input); 160 file_spec2.SetFileName(test_data.input);
159 // Check internal object value. 161 // Check internal object value.
160 file_name = dict_obj->GetUnicodeTextBy("F"); 162 file_name = dict_obj->GetUnicodeTextBy("F");
161 EXPECT_TRUE(file_name.Equal(test_data.expected)); 163 EXPECT_TRUE(file_name.Equal(test_data.expected));
162 file_name = dict_obj->GetUnicodeTextBy("UF"); 164 file_name = dict_obj->GetUnicodeTextBy("UF");
163 EXPECT_TRUE(file_name.Equal(test_data.expected)); 165 EXPECT_TRUE(file_name.Equal(test_data.expected));
164 // Check we can get the file name back. 166 // Check we can get the file name back.
165 EXPECT_TRUE(file_spec2.GetFileName(&file_name)); 167 EXPECT_TRUE(file_spec2.GetFileName(&file_name));
166 EXPECT_TRUE(file_name.Equal(test_data.input)); 168 EXPECT_TRUE(file_name.Equal(test_data.input));
167 } 169 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_basic.cpp ('k') | core/src/fpdfdoc/doc_bookmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698