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

Side by Side Diff: fpdfsdk/javascript/public_methods_embeddertest.cpp

Issue 2382723003: Move core/fxcrt/include to core/fxcrt (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « fpdfsdk/javascript/ijs_runtime.h ('k') | fpdfsdk/javascript/resource.h » ('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 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 <cmath> 5 #include <cmath>
6 6
7 #include "core/fxcrt/include/fx_string.h" 7 #include "core/fxcrt/fx_string.h"
8 #include "fpdfsdk/javascript/PublicMethods.h" 8 #include "fpdfsdk/javascript/PublicMethods.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/js_embedder_test.h" 10 #include "testing/js_embedder_test.h"
11 11
12 namespace { 12 namespace {
13 13
14 double RoundDownDate(double date) { 14 double RoundDownDate(double date) {
15 return date - fmod(date, 86400000); 15 return date - fmod(date, 86400000);
16 } 16 }
17 17
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 EXPECT_STREQ(L"208531", formatted_date.c_str()); 153 EXPECT_STREQ(L"208531", formatted_date.c_str());
154 154
155 // 2095-02-01 155 // 2095-02-01
156 formatted_date = 156 formatted_date =
157 CJS_PublicMethods::MakeFormatDate(3947356800000.0, L"ddmmyy"); 157 CJS_PublicMethods::MakeFormatDate(3947356800000.0, L"ddmmyy");
158 EXPECT_STREQ(L"010295", formatted_date.c_str()); 158 EXPECT_STREQ(L"010295", formatted_date.c_str());
159 formatted_date = 159 formatted_date =
160 CJS_PublicMethods::MakeFormatDate(3947356800000.0, L"mmddyyyy"); 160 CJS_PublicMethods::MakeFormatDate(3947356800000.0, L"mmddyyyy");
161 EXPECT_STREQ(L"02012095", formatted_date.c_str()); 161 EXPECT_STREQ(L"02012095", formatted_date.c_str());
162 } 162 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/ijs_runtime.h ('k') | fpdfsdk/javascript/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698