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

Unified Diff: chrome/renderer/render_widget_browsertest.h

Issue 6709032: Move render_widget files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/render_widget_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_widget_browsertest.h
===================================================================
--- chrome/renderer/render_widget_browsertest.h (revision 78695)
+++ chrome/renderer/render_widget_browsertest.h (working copy)
@@ -1,58 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_RENDERER_RENDER_WIDGET_BROWSERTEST_H_
-#define CHROME_RENDERER_RENDER_WIDGET_BROWSERTEST_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/file_path.h"
-#include "chrome/test/render_view_test.h"
-
-namespace gfx {
-class Size;
-}
-
-class SkBitmap;
-class TransportDIB;
-
-class RenderWidgetTest : public RenderViewTest {
- public:
- RenderWidgetTest();
-
- protected:
- static const int kNumBytesPerPixel;
- static const int kLargeWidth;
- static const int kLargeHeight;
- static const int kSmallWidth;
- static const int kSmallHeight;
- static const int kTextPositionX;
- static const int kTextPositionY;
- static const uint32 kRedARGB;
-
- // Helper function which calls OnMsgPaintAtSize and also paints the result
- // in the given bitmap. The widget is resized to |page_size| before we paint
- // and the final image is resized to |desired_size|. This method is virtual so
- // that TestResizeAndPaint() can be reused by subclasses of this test class.
- virtual void ResizeAndPaint(const gfx::Size& page_size,
- const gfx::Size& desired_size,
- SkBitmap* snapshot);
-
- // Test for ResizeAndPaint.
- void TestResizeAndPaint();
-
- // Helper function which returns true if the given bitmap contains the given
- // ARGB color and false otherwise.
- bool ImageContainsColor(const SkBitmap& bitmap, uint32 argb_color);
-
- // This can be used for debugging if you want to output a bitmap
- // image to a file.
- // FilePath tmp_path;
- // file_util::CreateTemporaryFile(&tmp_path);
- // OutputBitmapToFile(bitmap, tmp_path);
- // LOG(INFO) << "Bitmap image stored at: " << tmp_path.value();
- void OutputBitmapToFile(const SkBitmap& bitmap, const FilePath& file_path);
-};
-
-#endif // CHROME_RENDERER_RENDER_WIDGET_BROWSERTEST_H_
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/render_widget_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698