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

Side by Side Diff: content/browser/gpu/gpu_crash_browsertest.cc

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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
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/path_service.h" 5 #include "base/path_service.h"
6 #include "content/browser/gpu/gpu_data_manager_impl.h" 6 #include "content/browser/gpu/gpu_data_manager_impl.h"
7 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 7 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
8 #include "content/public/browser/notification_service.h" 8 #include "content/public/browser/notification_service.h"
9 #include "content/public/browser/notification_types.h" 9 #include "content/public/browser/notification_types.h"
10 #include "content/public/common/content_paths.h" 10 #include "content/public/common/content_paths.h"
11 #include "content/public/test/browser_test_utils.h" 11 #include "content/public/test/browser_test_utils.h"
12 #include "content/public/test/test_utils.h" 12 #include "content/public/test/test_utils.h"
13 #include "content/shell/shell.h" 13 #include "content/shell/shell.h"
14 #include "content/test/content_browser_test.h" 14 #include "content/test/content_browser_test.h"
15 #include "content/test/content_browser_test_utils.h" 15 #include "content/test/content_browser_test_utils.h"
16 16
17 namespace content { 17 namespace content {
18 class GpuCrashTest : public ContentBrowserTest { 18 class GpuCrashTest : public ContentBrowserTest {
19 protected: 19 protected:
20 virtual void SetUpInProcessBrowserTestFixture() { 20 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
21 base::FilePath test_dir; 21 base::FilePath test_dir;
22 ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &test_dir)); 22 ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &test_dir));
23 gpu_test_dir_ = test_dir.AppendASCII("gpu"); 23 gpu_test_dir_ = test_dir.AppendASCII("gpu");
24 } 24 }
25 base::FilePath gpu_test_dir_; 25 base::FilePath gpu_test_dir_;
26 }; 26 };
27 27
28 IN_PROC_BROWSER_TEST_F(GpuCrashTest, MANUAL_Kill) { 28 IN_PROC_BROWSER_TEST_F(GpuCrashTest, MANUAL_Kill) {
29 DOMMessageQueue message_queue; 29 DOMMessageQueue message_queue;
30 30
(...skipping 28 matching lines...) Expand all
59 GetFileUrlWithQuery( 59 GetFileUrlWithQuery(
60 gpu_test_dir_.AppendASCII("webgl.html"), 60 gpu_test_dir_.AppendASCII("webgl.html"),
61 "query=WEBGL_lose_context")); 61 "query=WEBGL_lose_context"));
62 62
63 std::string m; 63 std::string m;
64 ASSERT_TRUE(message_queue.WaitForMessage(&m)); 64 ASSERT_TRUE(message_queue.WaitForMessage(&m));
65 EXPECT_EQ("\"SUCCESS\"", m); 65 EXPECT_EQ("\"SUCCESS\"", m);
66 } 66 }
67 67
68 } // namespace content 68 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_blacklist_unittest.cc ('k') | content/browser/gpu/gpu_data_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698