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

Side by Side Diff: chrome/browser/gpu_pixel_browsertest.cc

Issue 7541001: Move more files from chrome/test to chrome/test/base, part #3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « chrome/browser/gpu_crash_browsertest.cc ('k') | chrome/browser/gpu_uitest.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) 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 #include <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/stringprintf.h" 14 #include "base/stringprintf.h"
15 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/ui/browser_window.h" 16 #include "chrome/browser/ui/browser_window.h"
17 #include "chrome/common/chrome_paths.h" 17 #include "chrome/common/chrome_paths.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/test/base/in_process_browser_test.h" 19 #include "chrome/test/base/in_process_browser_test.h"
20 #include "chrome/test/base/test_launcher_utils.h"
20 #include "chrome/test/base/ui_test_utils.h" 21 #include "chrome/test/base/ui_test_utils.h"
21 #include "chrome/test/test_launcher_utils.h"
22 #include "content/browser/gpu/gpu_data_manager.h" 22 #include "content/browser/gpu/gpu_data_manager.h"
23 #include "content/browser/gpu/gpu_process_host.h" 23 #include "content/browser/gpu/gpu_process_host.h"
24 #include "content/browser/renderer_host/render_view_host.h" 24 #include "content/browser/renderer_host/render_view_host.h"
25 #include "content/browser/tab_contents/tab_contents.h" 25 #include "content/browser/tab_contents/tab_contents.h"
26 #include "content/common/gpu/gpu_info.h" 26 #include "content/common/gpu/gpu_info.h"
27 #include "googleurl/src/gurl.h" 27 #include "googleurl/src/gurl.h"
28 #include "net/base/net_util.h" 28 #include "net/base/net_util.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 #include "third_party/skia/include/core/SkBitmap.h" 30 #include "third_party/skia/include/core/SkBitmap.h"
31 #include "third_party/skia/include/core/SkColor.h" 31 #include "third_party/skia/include/core/SkColor.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 ASSERT_TRUE(message_queue.WaitForMessage(NULL)); 285 ASSERT_TRUE(message_queue.WaitForMessage(NULL));
286 286
287 SkBitmap bitmap; 287 SkBitmap bitmap;
288 gfx::Size container_size(500, 500); 288 gfx::Size container_size(500, 500);
289 ResizeTabContainer(browser(), container_size); 289 ResizeTabContainer(browser(), container_size);
290 ASSERT_TRUE(ui_test_utils::TakeRenderWidgetSnapshot( 290 ASSERT_TRUE(ui_test_utils::TakeRenderWidgetSnapshot(
291 browser()->GetSelectedTabContents()->render_view_host(), 291 browser()->GetSelectedTabContents()->render_view_host(),
292 container_size, &bitmap)); 292 container_size, &bitmap));
293 ASSERT_TRUE(CompareImages(bitmap, "")); 293 ASSERT_TRUE(CompareImages(bitmap, ""));
294 } 294 }
OLDNEW
« no previous file with comments | « chrome/browser/gpu_crash_browsertest.cc ('k') | chrome/browser/gpu_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698