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

Side by Side Diff: testing/test_support.cpp

Issue 1773733002: Review and cleanup lint warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « public/fpdfview.h ('k') | testing/utils/path_service.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 "testing/test_support.h" 5 #include "testing/test_support.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string>
11
10 #include "testing/utils/path_service.h" 12 #include "testing/utils/path_service.h"
11 13
12 #ifdef PDF_ENABLE_V8 14 #ifdef PDF_ENABLE_V8
13 #include "v8/include/libplatform/libplatform.h" 15 #include "v8/include/libplatform/libplatform.h"
14 #endif 16 #endif
15 17
16 namespace { 18 namespace {
17 19
18 #ifdef PDF_ENABLE_V8 20 #ifdef PDF_ENABLE_V8
19 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 21 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 185 }
184 186
185 // static 187 // static
186 int TestSaver::WriteBlockCallback(FPDF_FILEWRITE* pFileWrite, 188 int TestSaver::WriteBlockCallback(FPDF_FILEWRITE* pFileWrite,
187 const void* data, 189 const void* data,
188 unsigned long size) { 190 unsigned long size) {
189 TestSaver* pThis = static_cast<TestSaver*>(pFileWrite); 191 TestSaver* pThis = static_cast<TestSaver*>(pFileWrite);
190 pThis->m_String.append(static_cast<const char*>(data), size); 192 pThis->m_String.append(static_cast<const char*>(data), size);
191 return 1; 193 return 1;
192 } 194 }
OLDNEW
« no previous file with comments | « public/fpdfview.h ('k') | testing/utils/path_service.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698