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

Side by Side Diff: content/renderer/pepper/event_conversion_unittest.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <stddef.h>
6
5 #include "base/logging.h" 7 #include "base/logging.h"
6 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
7 #include "content/common/input/synthetic_web_input_event_builders.h" 9 #include "content/common/input/synthetic_web_input_event_builders.h"
8 #include "content/renderer/pepper/event_conversion.h" 10 #include "content/renderer/pepper/event_conversion.h"
9 #include "ppapi/shared_impl/ppb_input_event_shared.h" 11 #include "ppapi/shared_impl/ppb_input_event_shared.h"
10 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 class EventConversionTest : public ::testing::Test { 16 class EventConversionTest : public ::testing::Test {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 scoped_ptr<blink::WebInputEvent> event_out(CreateWebInputEvent(pp_event)); 138 scoped_ptr<blink::WebInputEvent> event_out(CreateWebInputEvent(pp_event));
137 const blink::WebTouchEvent* touch_out = 139 const blink::WebTouchEvent* touch_out =
138 static_cast<const blink::WebTouchEvent*>(event_out.get()); 140 static_cast<const blink::WebTouchEvent*>(event_out.get());
139 ASSERT_TRUE(touch_out); 141 ASSERT_TRUE(touch_out);
140 EXPECT_EQ(touch.type, touch_out->type); 142 EXPECT_EQ(touch.type, touch_out->type);
141 EXPECT_EQ(touch.touchesLength, touch_out->touchesLength); 143 EXPECT_EQ(touch.touchesLength, touch_out->touchesLength);
142 CompareWebTouchEvents(touch, *touch_out); 144 CompareWebTouchEvents(touch, *touch_out);
143 } 145 }
144 146
145 } // namespace content 147 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/event_conversion.cc ('k') | content/renderer/pepper/fake_pepper_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698