| 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_CDM_FILE_IO_TEST_H_ | 5 #ifndef MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_ |
| 6 #define MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_ | 6 #define MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| 11 #include <stack> | 11 #include <stack> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/callback.h" | 15 #include "base/callback.h" |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/macros.h" |
| 17 #include "media/cdm/api/content_decryption_module.h" | 18 #include "media/cdm/api/content_decryption_module.h" |
| 18 | 19 |
| 19 namespace media { | 20 namespace media { |
| 20 | 21 |
| 21 typedef base::Callback<void(bool success)> CompletionCB; | 22 typedef base::Callback<void(bool success)> CompletionCB; |
| 22 typedef base::Callback<cdm::FileIO*(cdm::FileIOClient* client)> CreateFileIOCB; | 23 typedef base::Callback<cdm::FileIO*(cdm::FileIOClient* client)> CreateFileIOCB; |
| 23 | 24 |
| 24 // A customizable test class that tests cdm::FileIO implementation. | 25 // A customizable test class that tests cdm::FileIO implementation. |
| 25 // - To create a test, call AddTestStep() to add a test step. A test step can be | 26 // - To create a test, call AddTestStep() to add a test step. A test step can be |
| 26 // either an action to make (use ACTION_* types), or a result to verify (use | 27 // either an action to make (use ACTION_* types), or a result to verify (use |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 std::vector<uint8_t> large_data_; | 156 std::vector<uint8_t> large_data_; |
| 156 size_t total_num_tests_; // Total number of tests. | 157 size_t total_num_tests_; // Total number of tests. |
| 157 size_t num_passed_tests_; // Number of passed tests. | 158 size_t num_passed_tests_; // Number of passed tests. |
| 158 | 159 |
| 159 DISALLOW_COPY_AND_ASSIGN (FileIOTestRunner); | 160 DISALLOW_COPY_AND_ASSIGN (FileIOTestRunner); |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace media | 163 } // namespace media |
| 163 | 164 |
| 164 #endif // MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_ | 165 #endif // MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_ |
| OLD | NEW |