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

Side by Side Diff: ppapi/native_client/tests/ppapi_browser/ppb_pdf/ppapi_ppb_pdf.cc

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium 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 <string.h> 5 #include <string.h>
6 #include <string> 6 #include <string>
7 7
8 #include "native_client/src/include/nacl_macros.h" 8 #include "native_client/src/include/nacl_macros.h"
9 #include "native_client/src/shared/platform/nacl_check.h" 9 #include "native_client/src/shared/platform/nacl_check.h"
10 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h" 10 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 192 }
193 193
194 void TestHistogramPDFPageCount() { 194 void TestHistogramPDFPageCount() {
195 PPBPDF()->HistogramPDFPageCount(1); 195 PPBPDF()->HistogramPDFPageCount(1);
196 196
197 return TEST_PASSED; 197 return TEST_PASSED;
198 } 198 }
199 199
200 void TestUserMetricsRecordAction() { 200 void TestUserMetricsRecordAction() {
201 const char* kString = "Action!"; 201 const char* kString = "Action!";
202 PP_Var action = PPBVar()->VarFromUtf8(pp_module(), 202 PP_Var action = PPBVar()->VarFromUtf8(kString,
203 kString,
204 strlen(kString)); 203 strlen(kString));
205 PPBPDF()->UserMetricsRecordAction(action); 204 PPBPDF()->UserMetricsRecordAction(action);
206 205
207 PPBVar()->Release(action); 206 PPBVar()->Release(action);
208 207
209 return TEST_PASSED; 208 return TEST_PASSED;
210 } 209 }
211 210
212 void TestHasUnsupportedFeature() { 211 void TestHasUnsupportedFeature() {
213 PPBPDF()->HasUnsupportedFeature(pp_instance()); 212 PPBPDF()->HasUnsupportedFeature(pp_instance());
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 TestUserMetricsRecordAction); 249 TestUserMetricsRecordAction);
251 RegisterTest("TestHasUnsupportedFeature", 250 RegisterTest("TestHasUnsupportedFeature",
252 TestHasUnsupportedFeature); 251 TestHasUnsupportedFeature);
253 RegisterTest("TestSaveAs", 252 RegisterTest("TestSaveAs",
254 TestSaveAs); 253 TestSaveAs);
255 } 254 }
256 255
257 void SetupPluginInterfaces() { 256 void SetupPluginInterfaces() {
258 } 257 }
259 258
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/browser_interface.cc ('k') | ppapi/native_client/tests/ppapi_geturl/module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698