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

Side by Side Diff: chrome/renderer/render_widget_browsertest.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/renderer_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "app/surface/transport_dib.h" 5 #include "app/surface/transport_dib.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/ref_counted_memory.h" 9 #include "base/ref_counted_memory.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
12 #include "chrome/common/render_messages_params.h" 12 #include "chrome/common/render_messages_params.h"
13 #include "chrome/renderer/render_widget_browsertest.h" 13 #include "chrome/renderer/render_widget_browsertest.h"
14 #include "gfx/codec/jpeg_codec.h"
15 #include "gfx/size.h"
16 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/skia/include/core/SkBitmap.h" 15 #include "third_party/skia/include/core/SkBitmap.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
18 #include "ui/gfx/codec/jpeg_codec.h"
19 #include "ui/gfx/size.h"
20 20
21 const int RenderWidgetTest::kNumBytesPerPixel = 4; 21 const int RenderWidgetTest::kNumBytesPerPixel = 4;
22 const int RenderWidgetTest::kLargeWidth = 1024; 22 const int RenderWidgetTest::kLargeWidth = 1024;
23 const int RenderWidgetTest::kLargeHeight = 768; 23 const int RenderWidgetTest::kLargeHeight = 768;
24 const int RenderWidgetTest::kSmallWidth = 600; 24 const int RenderWidgetTest::kSmallWidth = 600;
25 const int RenderWidgetTest::kSmallHeight = 450; 25 const int RenderWidgetTest::kSmallHeight = 450;
26 const int RenderWidgetTest::kTextPositionX = 800; 26 const int RenderWidgetTest::kTextPositionX = 800;
27 const int RenderWidgetTest::kTextPositionY = 600; 27 const int RenderWidgetTest::kTextPositionY = 600;
28 const uint32 RenderWidgetTest::kRedARGB = 0xFFFF0000; 28 const uint32 RenderWidgetTest::kRedARGB = 0xFFFF0000;
29 29
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 &bitmap_data->data)); 140 &bitmap_data->data));
141 ASSERT_LT(0, file_util::WriteFile( 141 ASSERT_LT(0, file_util::WriteFile(
142 file_path, 142 file_path,
143 reinterpret_cast<const char*>(bitmap_data->front()), 143 reinterpret_cast<const char*>(bitmap_data->front()),
144 bitmap_data->size())); 144 bitmap_data->size()));
145 } 145 }
146 146
147 TEST_F(RenderWidgetTest, OnMsgPaintAtSize) { 147 TEST_F(RenderWidgetTest, OnMsgPaintAtSize) {
148 TestResizeAndPaint(); 148 TestResizeAndPaint();
149 } 149 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/renderer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698