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

Side by Side Diff: testing/embedder_test.cpp

Issue 1711793002: Sort headers in non-xfa directories. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 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
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 "testing/embedder_test.h" 5 #include "testing/embedder_test.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "public/fpdf_dataavail.h" 14 #include "public/fpdf_dataavail.h"
15 #include "public/fpdf_edit.h" 15 #include "public/fpdf_edit.h"
16 #include "public/fpdf_text.h" 16 #include "public/fpdf_text.h"
17 #include "public/fpdfview.h" 17 #include "public/fpdfview.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/test_support.h" 19 #include "testing/test_support.h"
20 #include "testing/utils/path_service.h" 20 #include "testing/utils/path_service.h"
21 21
22 #ifdef PDF_ENABLE_V8 22 #ifdef PDF_ENABLE_V8
23 #include "v8/include/v8-platform.h"
23 #include "v8/include/v8.h" 24 #include "v8/include/v8.h"
24 #include "v8/include/v8-platform.h"
25 #endif // PDF_ENABLE_V8 25 #endif // PDF_ENABLE_V8
26 26
27 namespace { 27 namespace {
28 const char* g_exe_path_ = nullptr; 28 const char* g_exe_path_ = nullptr;
29 } // namespace 29 } // namespace
30 30
31 FPDF_BOOL Is_Data_Avail(FX_FILEAVAIL* pThis, size_t offset, size_t size) { 31 FPDF_BOOL Is_Data_Avail(FX_FILEAVAIL* pThis, size_t offset, size_t size) {
32 return true; 32 return true;
33 } 33 }
34 34
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 } 316 }
317 317
318 // Can't use gtest-provided main since we need to stash the path to the 318 // Can't use gtest-provided main since we need to stash the path to the
319 // executable in order to find the external V8 binary data files. 319 // executable in order to find the external V8 binary data files.
320 int main(int argc, char** argv) { 320 int main(int argc, char** argv) {
321 g_exe_path_ = argv[0]; 321 g_exe_path_ = argv[0];
322 testing::InitGoogleTest(&argc, argv); 322 testing::InitGoogleTest(&argc, argv);
323 testing::InitGoogleMock(&argc, argv); 323 testing::InitGoogleMock(&argc, argv);
324 return RUN_ALL_TESTS(); 324 return RUN_ALL_TESTS();
325 } 325 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698