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

Side by Side Diff: content/public/test/render_widget_test.cc

Issue 11066098: Fix a test which uses the RenderViewTest harness running in unit_test binaries. This gives an asser… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 8 years, 2 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 | « content/public/test/render_widget_test.h ('k') | content/renderer/render_widget_browsertest.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) 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_browsertest.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/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
11 #include "base/stringprintf.h" 11 #include "base/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/skia/include/core/SkBitmap.h" 15 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bitmap.height(), 141 bitmap.height(),
142 static_cast<int>(bitmap.rowBytes()), 142 static_cast<int>(bitmap.rowBytes()),
143 90 /* quality */, 143 90 /* quality */,
144 &bitmap_data->data())); 144 &bitmap_data->data()));
145 ASSERT_LT(0, file_util::WriteFile( 145 ASSERT_LT(0, file_util::WriteFile(
146 file_path, 146 file_path,
147 reinterpret_cast<const char*>(bitmap_data->front()), 147 reinterpret_cast<const char*>(bitmap_data->front()),
148 bitmap_data->size())); 148 bitmap_data->size()));
149 } 149 }
150 150
151 TEST_F(RenderWidgetTest, OnMsgPaintAtSize) {
152 TestResizeAndPaint();
153 }
154
155 } // namespace content 151 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/render_widget_test.h ('k') | content/renderer/render_widget_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698