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

Side by Side Diff: core/src/fxcrt/fx_basic_bstring_unittest.cpp

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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/fxcrt/fx_basic_bstring.cpp ('k') | core/src/fxcrt/fx_basic_buffer.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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/fx_string_testhelpers.h" 5 #include "../../../testing/fx_string_testhelpers.h"
6 #include "../../include/fxcrt/fx_string.h" 6 #include "core/include/fxcrt/fx_string.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 TEST(fxcrt, ByteStringOperatorSubscript) { 9 TEST(fxcrt, ByteStringOperatorSubscript) {
10 // CFX_ByteString includes the NUL terminator for non-empty strings. 10 // CFX_ByteString includes the NUL terminator for non-empty strings.
11 CFX_ByteString abc("abc"); 11 CFX_ByteString abc("abc");
12 EXPECT_EQ('a', abc[0]); 12 EXPECT_EQ('a', abc[0]);
13 EXPECT_EQ('b', abc[1]); 13 EXPECT_EQ('b', abc[1]);
14 EXPECT_EQ('c', abc[2]); 14 EXPECT_EQ('c', abc[2]);
15 EXPECT_EQ(0, abc[3]); 15 EXPECT_EQ(0, abc[3]);
16 } 16 }
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 str.Format("%0f", 1.12345); 672 str.Format("%0f", 1.12345);
673 EXPECT_EQ("1.123450", str); 673 EXPECT_EQ("1.123450", str);
674 } 674 }
675 675
676 { 676 {
677 CFX_ByteString str; 677 CFX_ByteString str;
678 str.Format("%.1048576f", 1.2); 678 str.Format("%.1048576f", 1.2);
679 EXPECT_EQ("Bad precision", str); 679 EXPECT_EQ("Bad precision", str);
680 } 680 }
681 } 681 }
OLDNEW
« no previous file with comments | « core/src/fxcrt/fx_basic_bstring.cpp ('k') | core/src/fxcrt/fx_basic_buffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698