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

Side by Side Diff: content/shell/webkit_test_controller.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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 "content/shell/webkit_test_controller.h" 5 #include "content/shell/webkit_test_controller.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 const base::FilePath& current_working_directory, 198 const base::FilePath& current_working_directory,
199 bool enable_pixel_dumping, 199 bool enable_pixel_dumping,
200 const std::string& expected_pixel_hash) { 200 const std::string& expected_pixel_hash) {
201 DCHECK(CalledOnValidThread()); 201 DCHECK(CalledOnValidThread());
202 is_running_test_ = true; 202 is_running_test_ = true;
203 current_working_directory_ = current_working_directory; 203 current_working_directory_ = current_working_directory;
204 enable_pixel_dumping_ = enable_pixel_dumping; 204 enable_pixel_dumping_ = enable_pixel_dumping;
205 expected_pixel_hash_ = expected_pixel_hash; 205 expected_pixel_hash_ = expected_pixel_hash;
206 test_url_ = test_url; 206 test_url_ = test_url;
207 printer_->reset(); 207 printer_->reset();
208 content::ShellBrowserContext* browser_context = 208 ShellBrowserContext* browser_context =
209 static_cast<content::ShellContentBrowserClient*>( 209 ShellContentBrowserClient::Get()->browser_context();
210 content::GetContentClient()->browser())->browser_context();
211 if (test_url.spec().find("compositing/") != std::string::npos) 210 if (test_url.spec().find("compositing/") != std::string::npos)
212 is_compositing_test_ = true; 211 is_compositing_test_ = true;
213 gfx::Size initial_size(kTestWindowWidthDip, kTestWindowHeightDip); 212 gfx::Size initial_size(kTestWindowWidthDip, kTestWindowHeightDip);
214 // The W3C SVG layout tests use a different size than the other layout tests. 213 // The W3C SVG layout tests use a different size than the other layout tests.
215 if (test_url.spec().find("W3C-SVG-1.1") != std::string::npos) 214 if (test_url.spec().find("W3C-SVG-1.1") != std::string::npos)
216 initial_size = gfx::Size(kTestSVGWindowWidthDip, kTestSVGWindowHeightDip); 215 initial_size = gfx::Size(kTestSVGWindowWidthDip, kTestSVGWindowHeightDip);
217 if (!main_window_) { 216 if (!main_window_) {
218 main_window_ = content::Shell::CreateNewWindow( 217 main_window_ = content::Shell::CreateNewWindow(
219 browser_context, 218 browser_context,
220 GURL(), 219 GURL(),
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 open_windows[i]->Close(); 609 open_windows[i]->Close();
611 } 610 }
612 MessageLoop::current()->RunUntilIdle(); 611 MessageLoop::current()->RunUntilIdle();
613 } 612 }
614 613
615 void WebKitTestController::OnResetDone() { 614 void WebKitTestController::OnResetDone() {
616 MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); 615 MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
617 } 616 }
618 617
619 } // namespace content 618 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_web_contents_view_delegate_win.cc ('k') | content/test/content_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698