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

Unified Diff: remoting/test/test_video_renderer_unittest.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: 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 | « remoting/test/test_video_renderer.cc ('k') | remoting/test/video_frame_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/test_video_renderer_unittest.cc
diff --git a/remoting/test/test_video_renderer_unittest.cc b/remoting/test/test_video_renderer_unittest.cc
index 54dc761eda86adb082d30f2204952cac9bce106f..bf559549a06def650e3624f3c557330905df41cd 100644
--- a/remoting/test/test_video_renderer_unittest.cc
+++ b/remoting/test/test_video_renderer_unittest.cc
@@ -4,8 +4,11 @@
#include "remoting/test/test_video_renderer.h"
+#include <stdint.h>
+
#include <cmath>
+#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
@@ -343,7 +346,7 @@ scoped_ptr<webrtc::DesktopFrame>
void TestVideoRendererTest::FillFrameWithGradient(
webrtc::DesktopFrame* frame) const {
for (int y = 0; y < frame->size().height(); ++y) {
- uint8* p = frame->data() + y * frame->stride();
+ uint8_t* p = frame->data() + y * frame->stride();
for (int x = 0; x < frame->size().width(); ++x) {
*p++ = (255.0 * x) / frame->size().width();
*p++ = (164.0 * y) / frame->size().height();
« no previous file with comments | « remoting/test/test_video_renderer.cc ('k') | remoting/test/video_frame_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698