OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ppapi/tests/test_platform_verification_private.h" | 5 #include "ppapi/tests/test_platform_verification_private.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "ppapi/cpp/instance.h" | 9 #include "ppapi/cpp/instance.h" |
8 #include "ppapi/cpp/module.h" | 10 #include "ppapi/cpp/module.h" |
9 #include "ppapi/cpp/private/platform_verification.h" | 11 #include "ppapi/cpp/private/platform_verification.h" |
10 #include "ppapi/cpp/var.h" | 12 #include "ppapi/cpp/var.h" |
11 #include "ppapi/cpp/var_array_buffer.h" | 13 #include "ppapi/cpp/var_array_buffer.h" |
12 #include "ppapi/tests/test_utils.h" | 14 #include "ppapi/tests/test_utils.h" |
13 #include "ppapi/tests/testing_instance.h" | 15 #include "ppapi/tests/testing_instance.h" |
14 | 16 |
15 REGISTER_TEST_CASE(PlatformVerificationPrivate); | 17 REGISTER_TEST_CASE(PlatformVerificationPrivate); |
16 | 18 |
(...skipping 17 matching lines...) Expand all Loading... |
34 std::string service_id_str("fake.service.id"); | 36 std::string service_id_str("fake.service.id"); |
35 pp::Var signed_data, signed_data_signature, platform_key_certificate; | 37 pp::Var signed_data, signed_data_signature, platform_key_certificate; |
36 callback.WaitForResult(platform_verification_api.ChallengePlatform( | 38 callback.WaitForResult(platform_verification_api.ChallengePlatform( |
37 pp::Var(service_id_str), challenge_array, &signed_data, | 39 pp::Var(service_id_str), challenge_array, &signed_data, |
38 &signed_data_signature, &platform_key_certificate, | 40 &signed_data_signature, &platform_key_certificate, |
39 callback.GetCallback())); | 41 callback.GetCallback())); |
40 CHECK_CALLBACK_BEHAVIOR(callback); | 42 CHECK_CALLBACK_BEHAVIOR(callback); |
41 ASSERT_EQ(PP_ERROR_FAILED, callback.result()); | 43 ASSERT_EQ(PP_ERROR_FAILED, callback.result()); |
42 PASS(); | 44 PASS(); |
43 } | 45 } |
OLD | NEW |