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

Side by Side Diff: chrome/browser/gpu_crash_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_browsertest.cc ('k') | chrome/browser/gpu_pixel_browsertest.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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/common/chrome_paths.h" 9 #include "chrome/common/chrome_paths.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "chrome/test/base/in_process_browser_test.h" 12 #include "chrome/test/base/in_process_browser_test.h"
13 #include "chrome/test/base/test_launcher_utils.h"
13 #include "chrome/test/base/ui_test_utils.h" 14 #include "chrome/test/base/ui_test_utils.h"
14 #include "chrome/test/test_launcher_utils.h"
15 #include "content/browser/tab_contents/tab_contents.h" 15 #include "content/browser/tab_contents/tab_contents.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "ui/gfx/gl/gl_implementation.h" 17 #include "ui/gfx/gl/gl_implementation.h"
18 18
19 namespace { 19 namespace {
20 20
21 void SimulateGPUCrash(Browser* browser) { 21 void SimulateGPUCrash(Browser* browser) {
22 LOG(ERROR) << "SimulateGPUCrash, before NavigateToURLWithDisposition"; 22 LOG(ERROR) << "SimulateGPUCrash, before NavigateToURLWithDisposition";
23 ui_test_utils::NavigateToURLWithDisposition(browser, 23 ui_test_utils::NavigateToURLWithDisposition(browser,
24 GURL(chrome::kChromeUIGpuCrashURL), NEW_FOREGROUND_TAB, 24 GURL(chrome::kChromeUIGpuCrashURL), NEW_FOREGROUND_TAB,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ui_test_utils::NavigateToURL( 77 ui_test_utils::NavigateToURL(
78 browser(), 78 browser(),
79 ui_test_utils::GetFileUrlWithQuery( 79 ui_test_utils::GetFileUrlWithQuery(
80 gpu_test_dir_.AppendASCII("webgl.html"), 80 gpu_test_dir_.AppendASCII("webgl.html"),
81 "query=WEBKIT_lose_context")); 81 "query=WEBKIT_lose_context"));
82 82
83 std::string m; 83 std::string m;
84 ASSERT_TRUE(message_queue.WaitForMessage(&m)); 84 ASSERT_TRUE(message_queue.WaitForMessage(&m));
85 EXPECT_EQ("\"SUCCESS\"", m); 85 EXPECT_EQ("\"SUCCESS\"", m);
86 } 86 }
OLDNEW
« no previous file with comments | « chrome/browser/gpu_browsertest.cc ('k') | chrome/browser/gpu_pixel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698