| 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_output_protection_private.h" | 5 #include "ppapi/tests/test_output_protection_private.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "ppapi/tests/testing_instance.h" | 9 #include "ppapi/tests/testing_instance.h" |
| 8 | 10 |
| 9 REGISTER_TEST_CASE(OutputProtectionPrivate); | 11 REGISTER_TEST_CASE(OutputProtectionPrivate); |
| 10 | 12 |
| 11 TestOutputProtectionPrivate::TestOutputProtectionPrivate( | 13 TestOutputProtectionPrivate::TestOutputProtectionPrivate( |
| 12 TestingInstance* instance) | 14 TestingInstance* instance) |
| 13 : TestCase(instance) { | 15 : TestCase(instance) { |
| 14 } | 16 } |
| 15 | 17 |
| 16 bool TestOutputProtectionPrivate::Init() { | 18 bool TestOutputProtectionPrivate::Init() { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 Create(instance_->pp_instance()); | 53 Create(instance_->pp_instance()); |
| 52 callback.WaitForResult( | 54 callback.WaitForResult( |
| 53 output_protection_interface_->EnableProtection( | 55 output_protection_interface_->EnableProtection( |
| 54 output_protection_resource, | 56 output_protection_resource, |
| 55 PP_OUTPUT_PROTECTION_METHOD_PRIVATE_NONE, | 57 PP_OUTPUT_PROTECTION_METHOD_PRIVATE_NONE, |
| 56 callback.GetCallback().pp_completion_callback())); | 58 callback.GetCallback().pp_completion_callback())); |
| 57 CHECK_CALLBACK_BEHAVIOR(callback); | 59 CHECK_CALLBACK_BEHAVIOR(callback); |
| 58 | 60 |
| 59 PASS(); | 61 PASS(); |
| 60 } | 62 } |
| OLD | NEW |