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 #ifndef CONTENT_PUBLIC_TEST_RENDER_WIDGET_TEST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_WIDGET_TEST_H_ |
6 #define CONTENT_PUBLIC_TEST_RENDER_WIDGET_TEST_H_ | 6 #define CONTENT_PUBLIC_TEST_RENDER_WIDGET_TEST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "content/public/test/render_view_test.h" | 10 #include "content/public/test/render_view_test.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // Test for OnResize and Resize. | 45 // Test for OnResize and Resize. |
46 void TestOnResize(); | 46 void TestOnResize(); |
47 | 47 |
48 // Helper function which returns true if the given bitmap contains the given | 48 // Helper function which returns true if the given bitmap contains the given |
49 // ARGB color and false otherwise. | 49 // ARGB color and false otherwise. |
50 bool ImageContainsColor(const SkBitmap& bitmap, uint32 argb_color); | 50 bool ImageContainsColor(const SkBitmap& bitmap, uint32 argb_color); |
51 | 51 |
52 // This can be used for debugging if you want to output a bitmap | 52 // This can be used for debugging if you want to output a bitmap |
53 // image to a file. | 53 // image to a file. |
54 // FilePath tmp_path; | 54 // FilePath tmp_path; |
55 // file_util::CreateTemporaryFile(&tmp_path); | 55 // base::CreateTemporaryFile(&tmp_path); |
56 // OutputBitmapToFile(bitmap, tmp_path); | 56 // OutputBitmapToFile(bitmap, tmp_path); |
57 // VLOG(0) << "Bitmap image stored at: " << tmp_path.value(); | 57 // VLOG(0) << "Bitmap image stored at: " << tmp_path.value(); |
58 void OutputBitmapToFile(const SkBitmap& bitmap, | 58 void OutputBitmapToFile(const SkBitmap& bitmap, |
59 const base::FilePath& file_path); | 59 const base::FilePath& file_path); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace content | 62 } // namespace content |
63 | 63 |
64 #endif // CONTENT_PUBLIC_TEST_RENDER_WIDGET_TEST_H_ | 64 #endif // CONTENT_PUBLIC_TEST_RENDER_WIDGET_TEST_H_ |
OLD | NEW |