OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CONTENT_TEST_RENDER_WIDGET_BROWSERTEST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_WIDGET_BROWSERTEST_H_ |
6 #define CONTENT_TEST_RENDER_WIDGET_BROWSERTEST_H_ | 6 #define CONTENT_PUBLIC_TEST_RENDER_WIDGET_BROWSERTEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "content/test/render_view_test.h" | 11 #include "content/test/render_view_test.h" |
12 | 12 |
13 class SkBitmap; | 13 class SkBitmap; |
14 | 14 |
15 namespace gfx { | 15 namespace gfx { |
16 class Size; | 16 class Size; |
17 } | 17 } |
18 | 18 |
19 class RenderWidgetTest : public content::RenderViewTest { | 19 namespace content { |
| 20 |
| 21 class RenderWidgetTest : public RenderViewTest { |
20 public: | 22 public: |
21 RenderWidgetTest(); | 23 RenderWidgetTest(); |
22 | 24 |
23 protected: | 25 protected: |
24 static const int kNumBytesPerPixel; | 26 static const int kNumBytesPerPixel; |
25 static const int kLargeWidth; | 27 static const int kLargeWidth; |
26 static const int kLargeHeight; | 28 static const int kLargeHeight; |
27 static const int kSmallWidth; | 29 static const int kSmallWidth; |
28 static const int kSmallHeight; | 30 static const int kSmallHeight; |
29 static const int kTextPositionX; | 31 static const int kTextPositionX; |
(...skipping 17 matching lines...) Expand all Loading... |
47 | 49 |
48 // This can be used for debugging if you want to output a bitmap | 50 // This can be used for debugging if you want to output a bitmap |
49 // image to a file. | 51 // image to a file. |
50 // FilePath tmp_path; | 52 // FilePath tmp_path; |
51 // file_util::CreateTemporaryFile(&tmp_path); | 53 // file_util::CreateTemporaryFile(&tmp_path); |
52 // OutputBitmapToFile(bitmap, tmp_path); | 54 // OutputBitmapToFile(bitmap, tmp_path); |
53 // LOG(INFO) << "Bitmap image stored at: " << tmp_path.value(); | 55 // LOG(INFO) << "Bitmap image stored at: " << tmp_path.value(); |
54 void OutputBitmapToFile(const SkBitmap& bitmap, const FilePath& file_path); | 56 void OutputBitmapToFile(const SkBitmap& bitmap, const FilePath& file_path); |
55 }; | 57 }; |
56 | 58 |
57 #endif // CONTENT_TEST_RENDER_WIDGET_BROWSERTEST_H_ | 59 } // namespace content |
| 60 |
| 61 #endif // CONTENT_PUBLIC_TEST_RENDER_WIDGET_BROWSERTEST_H_ |
OLD | NEW |