OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |