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

Unified Diff: media/cdm/ppapi/cdm_file_io_test.h

Issue 1477433005: Remove kuint8max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint4
Patch Set: rebase Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/display/overscan_calibrator.cc ('k') | media/cdm/ppapi/cdm_file_io_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/cdm_file_io_test.h
diff --git a/media/cdm/ppapi/cdm_file_io_test.h b/media/cdm/ppapi/cdm_file_io_test.h
index 8a2eb4a1127714142cff4c3106de7cdfd41094ed..36b9cdc2d601d08338b7fa0e6b049cf1b3699b4e 100644
--- a/media/cdm/ppapi/cdm_file_io_test.h
+++ b/media/cdm/ppapi/cdm_file_io_test.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_
#define MEDIA_CDM_PPAPI_CDM_FILE_IO_TEST_H_
+#include <stdint.h>
+
#include <list>
#include <stack>
#include <string>
@@ -66,8 +68,10 @@ class FileIOTest : public cdm::FileIOClient {
// Adds a test step in this test. |this| object doesn't take the ownership of
// |data|, which should be valid throughout the lifetime of |this| object.
- void AddTestStep(
- StepType type, Status status, const uint8* data, uint32 data_size);
+ void AddTestStep(StepType type,
+ Status status,
+ const uint8_t* data,
+ uint32_t data_size);
// Runs this test case and returns the test result through |completion_cb|.
void Run(const CompletionCB& completion_cb);
@@ -76,7 +80,10 @@ class FileIOTest : public cdm::FileIOClient {
struct TestStep {
// |this| object doesn't take the ownership of |data|, which should be valid
// throughout the lifetime of |this| object.
- TestStep(StepType type, Status status, const uint8* data, uint32 data_size)
+ TestStep(StepType type,
+ Status status,
+ const uint8_t* data,
+ uint32_t data_size)
: type(type), status(status), data(data), data_size(data_size) {}
StepType type;
@@ -85,8 +92,8 @@ class FileIOTest : public cdm::FileIOClient {
Status status;
// Data to write in ACTION_WRITE, or read data in RESULT_READ.
- const uint8* data;
- uint32 data_size;
+ const uint8_t* data;
+ uint32_t data_size;
};
// Returns whether |test_step| is a RESULT_* step.
@@ -145,7 +152,7 @@ class FileIOTestRunner {
CreateFileIOCB create_file_io_cb_;
CompletionCB completion_cb_;
std::list<FileIOTest> remaining_tests_;
- std::vector<uint8> large_data_;
+ std::vector<uint8_t> large_data_;
size_t total_num_tests_; // Total number of tests.
size_t num_passed_tests_; // Number of passed tests.
« no previous file with comments | « chrome/browser/chromeos/display/overscan_calibrator.cc ('k') | media/cdm/ppapi/cdm_file_io_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698