OLD | NEW |
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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "app/app_switches.h" | 8 #include "app/app_switches.h" |
9 #include "app/gfx/gl/gl_implementation.h" | 9 #include "app/gfx/gl/gl_implementation.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "chrome/browser/gpu_data_manager.h" | 17 #include "chrome/browser/gpu_data_manager.h" |
18 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
19 #include "chrome/browser/ui/browser_window.h" | 19 #include "chrome/browser/ui/browser_window.h" |
20 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
21 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
22 #include "chrome/common/gpu_info.h" | |
23 #include "chrome/test/in_process_browser_test.h" | 22 #include "chrome/test/in_process_browser_test.h" |
24 #include "chrome/test/test_launcher_utils.h" | 23 #include "chrome/test/test_launcher_utils.h" |
25 #include "chrome/test/ui_test_utils.h" | 24 #include "chrome/test/ui_test_utils.h" |
26 #include "content/browser/gpu_process_host.h" | 25 #include "content/browser/gpu_process_host.h" |
27 #include "content/browser/renderer_host/render_view_host.h" | 26 #include "content/browser/renderer_host/render_view_host.h" |
28 #include "content/browser/tab_contents/tab_contents.h" | 27 #include "content/browser/tab_contents/tab_contents.h" |
| 28 #include "content/common/gpu_info.h" |
29 #include "googleurl/src/gurl.h" | 29 #include "googleurl/src/gurl.h" |
30 #include "net/base/net_util.h" | 30 #include "net/base/net_util.h" |
31 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
32 #include "third_party/skia/include/core/SkBitmap.h" | 32 #include "third_party/skia/include/core/SkBitmap.h" |
33 #include "third_party/skia/include/core/SkColor.h" | 33 #include "third_party/skia/include/core/SkColor.h" |
34 #include "ui/gfx/codec/png_codec.h" | 34 #include "ui/gfx/codec/png_codec.h" |
35 #include "ui/gfx/size.h" | 35 #include "ui/gfx/size.h" |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 ASSERT_TRUE(message_queue.WaitForMessage(NULL)); | 282 ASSERT_TRUE(message_queue.WaitForMessage(NULL)); |
283 | 283 |
284 SkBitmap bitmap; | 284 SkBitmap bitmap; |
285 gfx::Size container_size(500, 500); | 285 gfx::Size container_size(500, 500); |
286 ResizeTabContainer(browser(), container_size); | 286 ResizeTabContainer(browser(), container_size); |
287 ASSERT_TRUE(ui_test_utils::TakeRenderWidgetSnapshot( | 287 ASSERT_TRUE(ui_test_utils::TakeRenderWidgetSnapshot( |
288 browser()->GetSelectedTabContents()->render_view_host(), | 288 browser()->GetSelectedTabContents()->render_view_host(), |
289 container_size, &bitmap)); | 289 container_size, &bitmap)); |
290 ASSERT_TRUE(CompareImages(bitmap, "")); | 290 ASSERT_TRUE(CompareImages(bitmap, "")); |
291 } | 291 } |
OLD | NEW |