Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 20155 PDFium Authors. All rights reserved. | |
|
Lei Zhang
2016/01/04 23:00:29
2016
Tom Sepez
2016/01/04 23:03:25
Done.
| |
| 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 "core/include/fxcrt/fx_string.h" | |
|
Lei Zhang
2016/01/04 23:00:29
Not needed?
Tom Sepez
2016/01/04 23:03:25
Done.
| |
| 6 #include "public/fpdf_ext.h" | |
| 7 #include "public/fpdfview.h" | |
| 8 #include "testing/embedder_test.h" | |
| 9 #include "testing/fx_string_testhelpers.h" | |
|
Lei Zhang
2016/01/04 23:00:29
Ditto.
Tom Sepez
2016/01/04 23:03:25
Done.
| |
| 10 #include "testing/gtest/include/gtest/gtest.h" | |
| 11 | |
| 12 class FPDFExtEmbeddertest : public EmbedderTest {}; | |
| 13 | |
| 14 TEST_F(FPDFExtEmbeddertest, PageModeUnknown) { | |
| 15 EXPECT_EQ(PAGEMODE_UNKNOWN, FPDFDoc_GetPageMode(nullptr)); | |
| 16 } | |
| 17 | |
| 18 TEST_F(FPDFExtEmbeddertest, PageModeUseNone) { | |
| 19 EXPECT_TRUE(OpenDocument("hello_world.pdf")); | |
| 20 EXPECT_EQ(PAGEMODE_USENONE, FPDFDoc_GetPageMode(document())); | |
| 21 } | |
| 22 | |
| 23 TEST_F(FPDFExtEmbeddertest, PageModeUseOutlines) { | |
| 24 EXPECT_TRUE(OpenDocument("use_outlines.pdf")); | |
| 25 EXPECT_EQ(PAGEMODE_USEOUTLINES, FPDFDoc_GetPageMode(document())); | |
| 26 } | |
| OLD | NEW |