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

Side by Side Diff: chrome/test/gpu/gpu_crash_browsertest.cc

Issue 10272033: Disabling GPUCrashTest.Kill browser test. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « no previous file | no next file » | 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) 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 #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"
(...skipping 28 matching lines...) Expand all
39 command_line->AppendSwitchASCII(switches::kUseGL, "any"); 39 command_line->AppendSwitchASCII(switches::kUseGL, "any");
40 } 40 }
41 virtual void SetUpInProcessBrowserTestFixture() { 41 virtual void SetUpInProcessBrowserTestFixture() {
42 FilePath test_dir; 42 FilePath test_dir;
43 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_dir)); 43 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_dir));
44 gpu_test_dir_ = test_dir.AppendASCII("gpu"); 44 gpu_test_dir_ = test_dir.AppendASCII("gpu");
45 } 45 }
46 FilePath gpu_test_dir_; 46 FilePath gpu_test_dir_;
47 }; 47 };
48 48
49 // Currently Kill timeout on GPU Debug bots: http://crbug.com/101513 49 // Currently Kill times out on GPU bots: http://crbug.com/101513
50 #if !defined(NDEBUG) 50 IN_PROC_BROWSER_TEST_F(GPUCrashTest, DISABLED_Kill) {
51 #define MAYBE_Kill DISABLED_Kill
52 #else
53 #define MAYBE_Kill Kill
54 #endif
55 IN_PROC_BROWSER_TEST_F(GPUCrashTest, MAYBE_Kill) {
56 ui_test_utils::DOMMessageQueue message_queue; 51 ui_test_utils::DOMMessageQueue message_queue;
57 52
58 ui_test_utils::NavigateToURL( 53 ui_test_utils::NavigateToURL(
59 browser(), 54 browser(),
60 ui_test_utils::GetFileUrlWithQuery( 55 ui_test_utils::GetFileUrlWithQuery(
61 gpu_test_dir_.AppendASCII("webgl.html"), "query=kill")); 56 gpu_test_dir_.AppendASCII("webgl.html"), "query=kill"));
62 SimulateGPUCrash(browser()); 57 SimulateGPUCrash(browser());
63 58
64 std::string m; 59 std::string m;
65 ASSERT_TRUE(message_queue.WaitForMessage(&m)); 60 ASSERT_TRUE(message_queue.WaitForMessage(&m));
66 EXPECT_EQ("\"SUCCESS\"", m); 61 EXPECT_EQ("\"SUCCESS\"", m);
67 } 62 }
68 63
69 64
70 IN_PROC_BROWSER_TEST_F(GPUCrashTest, WebkitLoseContext) { 65 IN_PROC_BROWSER_TEST_F(GPUCrashTest, WebkitLoseContext) {
71 ui_test_utils::DOMMessageQueue message_queue; 66 ui_test_utils::DOMMessageQueue message_queue;
72 67
73 ui_test_utils::NavigateToURL( 68 ui_test_utils::NavigateToURL(
74 browser(), 69 browser(),
75 ui_test_utils::GetFileUrlWithQuery( 70 ui_test_utils::GetFileUrlWithQuery(
76 gpu_test_dir_.AppendASCII("webgl.html"), 71 gpu_test_dir_.AppendASCII("webgl.html"),
77 "query=WEBGL_lose_context")); 72 "query=WEBGL_lose_context"));
78 73
79 std::string m; 74 std::string m;
80 ASSERT_TRUE(message_queue.WaitForMessage(&m)); 75 ASSERT_TRUE(message_queue.WaitForMessage(&m));
81 EXPECT_EQ("\"SUCCESS\"", m); 76 EXPECT_EQ("\"SUCCESS\"", m);
82 } 77 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698