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

Side by Side Diff: xfa/fxfa/parser/xfa_utils_imp_unittest.cpp

Issue 2165833005: Rename xfa_utils_imp to xfa_utils (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa_parser_IV
Patch Set: Rebase to master Created 4 years, 5 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 | « xfa/fxfa/parser/xfa_utils_imp.cpp ('k') | xfa/fxfa/parser/xfa_utils_unittest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "testing/gtest/include/gtest/gtest.h"
6 #include "xfa/fxfa/parser/xfa_utils.h"
7
8 TEST(XfaUtilsImp, XFA_MapRotation) {
9 struct TestCase {
10 int input;
11 int expected_output;
12 } TestCases[] = {{-1000000, 80}, {-361, 359}, {-360, 0}, {-359, 1},
13 {-91, 269}, {-90, 270}, {-89, 271}, {-1, 359},
14 {0, 0}, {1, 1}, {89, 89}, {90, 90},
15 {91, 91}, {359, 359}, {360, 0}, {361, 1},
16 {100000, 280}};
17
18 for (size_t i = 0; i < FX_ArraySize(TestCases); ++i) {
19 EXPECT_EQ(TestCases[i].expected_output,
20 XFA_MapRotation(TestCases[i].input));
21 }
22 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_utils_imp.cpp ('k') | xfa/fxfa/parser/xfa_utils_unittest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698