OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/test/render_widget_test.h" | 5 #include "content/public/test/render_widget_test.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "content/common/view_messages.h" | 12 #include "content/common/view_messages.h" |
13 #include "content/renderer/render_view_impl.h" | 13 #include "content/renderer/render_view_impl.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" | 15 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
16 #include "third_party/WebKit/public/platform/WebSize.h" | 16 #include "third_party/WebKit/public/platform/WebSize.h" |
17 #include "third_party/WebKit/public/web/WebView.h" | 17 #include "third_party/WebKit/public/web/WebView.h" |
18 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
19 #include "ui/gfx/codec/jpeg_codec.h" | 19 #include "ui/gfx/codec/jpeg_codec.h" |
20 #include "ui/gfx/size.h" | 20 #include "ui/gfx/geometry/size.h" |
21 #include "ui/surface/transport_dib.h" | 21 #include "ui/surface/transport_dib.h" |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 const int RenderWidgetTest::kNumBytesPerPixel = 4; | 25 const int RenderWidgetTest::kNumBytesPerPixel = 4; |
26 const int RenderWidgetTest::kLargeWidth = 1024; | 26 const int RenderWidgetTest::kLargeWidth = 1024; |
27 const int RenderWidgetTest::kLargeHeight = 768; | 27 const int RenderWidgetTest::kLargeHeight = 768; |
28 const int RenderWidgetTest::kSmallWidth = 600; | 28 const int RenderWidgetTest::kSmallWidth = 600; |
29 const int RenderWidgetTest::kSmallHeight = 450; | 29 const int RenderWidgetTest::kSmallHeight = 450; |
30 const int RenderWidgetTest::kTextPositionX = 800; | 30 const int RenderWidgetTest::kTextPositionX = 800; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 widget->OnResize(resize_params); | 82 widget->OnResize(resize_params); |
83 EXPECT_FALSE(widget->next_paint_is_resize_ack()); | 83 EXPECT_FALSE(widget->next_paint_is_resize_ack()); |
84 | 84 |
85 resize_params.screen_info.orientationType = | 85 resize_params.screen_info.orientationType = |
86 blink::WebScreenOrientationPortraitPrimary; | 86 blink::WebScreenOrientationPortraitPrimary; |
87 widget->OnResize(resize_params); | 87 widget->OnResize(resize_params); |
88 EXPECT_FALSE(widget->next_paint_is_resize_ack()); | 88 EXPECT_FALSE(widget->next_paint_is_resize_ack()); |
89 } | 89 } |
90 | 90 |
91 } // namespace content | 91 } // namespace content |
OLD | NEW |