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 #ifndef MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ | 5 #ifndef MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ |
6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ | 6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // Callback for CDM File IO test. | 147 // Callback for CDM File IO test. |
148 void OnFileIOTestComplete(bool success); | 148 void OnFileIOTestComplete(bool success); |
149 | 149 |
150 void StartOutputProtectionTest(); | 150 void StartOutputProtectionTest(); |
151 void StartPlatformVerificationTest(); | 151 void StartPlatformVerificationTest(); |
152 | 152 |
153 // Keep track of the last session created. | 153 // Keep track of the last session created. |
154 void SetSessionId(const std::string& session_id); | 154 void SetSessionId(const std::string& session_id); |
155 | 155 |
| 156 void VerifyCdmHostTest(); |
| 157 |
156 scoped_refptr<AesDecryptor> decryptor_; | 158 scoped_refptr<AesDecryptor> decryptor_; |
157 | 159 |
158 ClearKeyCdmHost* host_; | 160 ClearKeyCdmHost* host_; |
159 | 161 |
160 const std::string key_system_; | 162 const std::string key_system_; |
161 | 163 |
162 std::string last_session_id_; | 164 std::string last_session_id_; |
163 std::string next_renewal_message_; | 165 std::string next_renewal_message_; |
164 | 166 |
165 // In order to simulate LoadSession(), CreateSession() and then | 167 // In order to simulate LoadSession(), CreateSession() and then |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 218 |
217 bool is_running_output_protection_test_; | 219 bool is_running_output_protection_test_; |
218 bool is_running_platform_verification_test_; | 220 bool is_running_platform_verification_test_; |
219 | 221 |
220 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); | 222 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); |
221 }; | 223 }; |
222 | 224 |
223 } // namespace media | 225 } // namespace media |
224 | 226 |
225 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ | 227 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ |
OLD | NEW |