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

Unified Diff: fpdfsdk/src/fpdfsave_embeddertest.cpp

Issue 1799773002: Move fpdfsdk/src up to fpdfsdk/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/src/fpdfsave.cpp ('k') | fpdfsdk/src/fpdftext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fpdfsave_embeddertest.cpp
diff --git a/fpdfsdk/src/fpdfsave_embeddertest.cpp b/fpdfsdk/src/fpdfsave_embeddertest.cpp
deleted file mode 100644
index 1c93f4f0e1569aa1bd4099d4472c2e55d055cf8f..0000000000000000000000000000000000000000
--- a/fpdfsdk/src/fpdfsave_embeddertest.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <string.h>
-
-#include "core/include/fxcrt/fx_string.h"
-#include "public/fpdf_save.h"
-#include "public/fpdfview.h"
-#include "testing/embedder_test.h"
-#include "testing/fx_string_testhelpers.h"
-#include "testing/gmock/include/gmock/gmock-matchers.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "testing/test_support.h"
-
-class FPDFSaveEmbedderTest : public EmbedderTest, public TestSaver {};
-
-TEST_F(FPDFSaveEmbedderTest, SaveSimpleDoc) {
- EXPECT_TRUE(OpenDocument("hello_world.pdf"));
- EXPECT_TRUE(FPDF_SaveAsCopy(document(), this, 0));
- EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n"));
- EXPECT_EQ(843, GetString().length());
-}
-
-TEST_F(FPDFSaveEmbedderTest, SaveSimpleDocWithVersion) {
- EXPECT_TRUE(OpenDocument("hello_world.pdf"));
- EXPECT_TRUE(FPDF_SaveWithVersion(document(), this, 0, 14));
- EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.4\r\n"));
- EXPECT_EQ(843, GetString().length());
-}
-
-TEST_F(FPDFSaveEmbedderTest, SaveSimpleDocWithBadVersion) {
- EXPECT_TRUE(OpenDocument("hello_world.pdf"));
- EXPECT_TRUE(FPDF_SaveWithVersion(document(), this, 0, -1));
- EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n"));
-
- ClearString();
- EXPECT_TRUE(FPDF_SaveWithVersion(document(), this, 0, 0));
- EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n"));
-
- ClearString();
- EXPECT_TRUE(FPDF_SaveWithVersion(document(), this, 0, 18));
- EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n"));
-}
-
-TEST_F(FPDFSaveEmbedderTest, BUG_342) {
- EXPECT_TRUE(OpenDocument("hello_world.pdf"));
- EXPECT_TRUE(FPDF_SaveAsCopy(document(), this, 0));
- EXPECT_THAT(GetString(), testing::HasSubstr("0000000000 65535 f\r\n"));
- EXPECT_THAT(GetString(),
- testing::Not(testing::HasSubstr("0000000000 65536 f\r\n")));
-}
« no previous file with comments | « fpdfsdk/src/fpdfsave.cpp ('k') | fpdfsdk/src/fpdftext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698