Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1103)

Side by Side Diff: media/cdm/ppapi/cdm_file_io_test.h

Issue 545983005: CdmFileIOImpl: Refactor Write() implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cannot use "ERROR" on Windows!!! Also polished tests. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_;
150 size_t total_num_tests_; // Total number of tests. 149 size_t total_num_tests_; // Total number of tests.
151 size_t num_passed_tests_; // Number of passed tests. 150 size_t num_passed_tests_; // Number of passed tests.
152 151
153 DISALLOW_COPY_AND_ASSIGN (FileIOTestRunner); 152 DISALLOW_COPY_AND_ASSIGN (FileIOTestRunner);
154 }; 153 };
155 154
156 } // namespace media 155 } // namespace media
157 156
158 #endif // MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_ 157 #endif // MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698