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

Side by Side Diff: fpdfsdk/src/fpdfformfill_embeddertest.cpp

Issue 1431593007: Merge to XFA: Fix all relative includes to public. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: IWYU, AKA fix build 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 | « fpdfsdk/src/fpdfformfill.cpp ('k') | fpdfsdk/src/fpdfppo.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 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 "../../public/fpdf_formfill.h"
6 #include "../../testing/embedder_test.h" 5 #include "../../testing/embedder_test.h"
7 #include "../../testing/embedder_test_mock_delegate.h" 6 #include "../../testing/embedder_test_mock_delegate.h"
8 #include "../../testing/embedder_test_timer_handling_delegate.h" 7 #include "../../testing/embedder_test_timer_handling_delegate.h"
8 #include "public/fpdf_formfill.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using testing::_; 12 using testing::_;
13 using testing::Return; 13 using testing::Return;
14 14
15 class FPDFFormFillEmbeddertest : public EmbedderTest {}; 15 class FPDFFormFillEmbeddertest : public EmbedderTest {};
16 16
17 TEST_F(FPDFFormFillEmbeddertest, FirstTest) { 17 TEST_F(FPDFFormFillEmbeddertest, FirstTest) {
18 EmbedderTestMockDelegate mock; 18 EmbedderTestMockDelegate mock;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 UnloadPage(page); 76 UnloadPage(page);
77 77
78 const auto& alerts = delegate.GetAlerts(); 78 const auto& alerts = delegate.GetAlerts();
79 ASSERT_EQ(1U, alerts.size()); 79 ASSERT_EQ(1U, alerts.size());
80 80
81 EXPECT_STREQ(L"hello world", alerts[0].message.c_str()); 81 EXPECT_STREQ(L"hello world", alerts[0].message.c_str());
82 EXPECT_STREQ(L"Alert", alerts[0].title.c_str()); 82 EXPECT_STREQ(L"Alert", alerts[0].title.c_str());
83 EXPECT_EQ(0, alerts[0].type); 83 EXPECT_EQ(0, alerts[0].type);
84 EXPECT_EQ(0, alerts[0].icon); 84 EXPECT_EQ(0, alerts[0].icon);
85 } 85 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdfformfill.cpp ('k') | fpdfsdk/src/fpdfppo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698