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

Side by Side Diff: content/test/content_browser_test.cc

Issue 21052007: aura: Clean up compositor initialization/destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanupcompositor: UseRealGLBindings for CompositingRWHVBrowserTests on win_rel Created 7 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 | « content/public/test/content_test_suite_base.cc ('k') | ui/aura/test/aura_test_helper.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 "content/test/content_browser_test.h" 5 #include "content/test/content_browser_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::FilePath subprocess_path; 73 base::FilePath subprocess_path;
74 PathService::Get(base::FILE_EXE, &subprocess_path); 74 PathService::Get(base::FILE_EXE, &subprocess_path);
75 subprocess_path = subprocess_path.DirName().DirName(); 75 subprocess_path = subprocess_path.DirName().DirName();
76 DCHECK_EQ(subprocess_path.BaseName().value(), "Contents"); 76 DCHECK_EQ(subprocess_path.BaseName().value(), "Contents");
77 subprocess_path = subprocess_path.Append( 77 subprocess_path = subprocess_path.Append(
78 "Frameworks/Content Shell Helper.app/Contents/MacOS/Content Shell Helper") ; 78 "Frameworks/Content Shell Helper.app/Contents/MacOS/Content Shell Helper") ;
79 command_line->AppendSwitchPath(switches::kBrowserSubprocessPath, 79 command_line->AppendSwitchPath(switches::kBrowserSubprocessPath,
80 subprocess_path); 80 subprocess_path);
81 #endif 81 #endif
82 82
83 // NOTE: should be kept in sync with
84 // chrome/browser/resources/software_rendering_list.json
85 #if !defined(OS_WIN) && !defined(OS_CHROMEOS)
86 command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode);
87 #endif
88
89 BrowserTestBase::SetUp(); 83 BrowserTestBase::SetUp();
90 } 84 }
91 85
92 void ContentBrowserTest::TearDown() { 86 void ContentBrowserTest::TearDown() {
93 BrowserTestBase::TearDown(); 87 BrowserTestBase::TearDown();
94 88
95 shell_main_delegate_.reset(); 89 shell_main_delegate_.reset();
96 } 90 }
97 91
98 void ContentBrowserTest::RunTestOnMainThreadLoop() { 92 void ContentBrowserTest::RunTestOnMainThreadLoop() {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() { 142 Shell* ContentBrowserTest::CreateOffTheRecordBrowser() {
149 return Shell::CreateNewWindow( 143 return Shell::CreateNewWindow(
150 ShellContentBrowserClient::Get()->off_the_record_browser_context(), 144 ShellContentBrowserClient::Get()->off_the_record_browser_context(),
151 GURL(kAboutBlankURL), 145 GURL(kAboutBlankURL),
152 NULL, 146 NULL,
153 MSG_ROUTING_NONE, 147 MSG_ROUTING_NONE,
154 gfx::Size()); 148 gfx::Size());
155 } 149 }
156 150
157 } // namespace content 151 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/content_test_suite_base.cc ('k') | ui/aura/test/aura_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698