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

Side by Side Diff: core/src/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp

Issue 1707923002: Expand all paths to be based off pdfium/ directory (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
Tom Sepez 2016/02/17 21:32:26 ditto
dsinclair 2016/02/17 21:54:00 Done.
7 #include "pageint.h" 7 #include "core/src/fpdfapi/fpdf_page/pageint.h"
8 8
9 TEST(fpdf_page_parser_old, ReadHexString) { 9 TEST(fpdf_page_parser_old, ReadHexString) {
10 { 10 {
11 // Position out of bounds. 11 // Position out of bounds.
12 uint8_t data[] = "12ab>"; 12 uint8_t data[] = "12ab>";
13 CPDF_StreamParser parser(data, 5); 13 CPDF_StreamParser parser(data, 5);
14 parser.SetPos(6); 14 parser.SetPos(6);
15 EXPECT_EQ("", parser.ReadHexString()); 15 EXPECT_EQ("", parser.ReadHexString());
16 } 16 }
17 17
(...skipping 21 matching lines...) Expand all
39 EXPECT_EQ(4, parser.GetPos()); 39 EXPECT_EQ(4, parser.GetPos());
40 } 40 }
41 41
42 { 42 {
43 uint8_t data[] = ">"; 43 uint8_t data[] = ">";
44 CPDF_StreamParser parser(data, 5); 44 CPDF_StreamParser parser(data, 5);
45 EXPECT_EQ("", parser.ReadHexString()); 45 EXPECT_EQ("", parser.ReadHexString());
46 EXPECT_EQ(1, parser.GetPos()); 46 EXPECT_EQ(1, parser.GetPos());
47 } 47 }
48 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698