| 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 <list> | 8 #include <list> |
| 9 #include <stack> | 9 #include <stack> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void RunAllTests(const CompletionCB& completion_cb); | 139 void RunAllTests(const CompletionCB& completion_cb); |
| 140 | 140 |
| 141 private: | 141 private: |
| 142 void OnTestComplete(bool success); | 142 void OnTestComplete(bool success); |
| 143 void RunNextTest(); | 143 void RunNextTest(); |
| 144 | 144 |
| 145 CreateFileIOCB create_file_io_cb_; | 145 CreateFileIOCB create_file_io_cb_; |
| 146 CompletionCB completion_cb_; | 146 CompletionCB completion_cb_; |
| 147 std::list<FileIOTest> remaining_tests_; | 147 std::list<FileIOTest> remaining_tests_; |
| 148 std::vector<uint8> large_data_; | 148 std::vector<uint8> large_data_; |
| 149 std::vector<uint8> corrupted_big_data_; |
| 149 size_t total_num_tests_; // Total number of tests. | 150 size_t total_num_tests_; // Total number of tests. |
| 150 size_t num_passed_tests_; // Number of passed tests. | 151 size_t num_passed_tests_; // Number of passed tests. |
| 151 | 152 |
| 152 DISALLOW_COPY_AND_ASSIGN (FileIOTestRunner); | 153 DISALLOW_COPY_AND_ASSIGN (FileIOTestRunner); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace media | 156 } // namespace media |
| 156 | 157 |
| 157 #endif // MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_ | 158 #endif // MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_ |
| OLD | NEW |