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

Side by Side Diff: chrome/test/base/web_ui_browser_test.cc

Issue 659233002: STASH: Epic Experimental patch for toolkit-views App List on Mac Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Fix a few things. Works@master Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/test/base/web_ui_browser_test.h" 5 #include "chrome/test/base/web_ui_browser_test.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 message_loop_runner_(new content::MessageLoopRunner) {} 236 message_loop_runner_(new content::MessageLoopRunner) {}
237 237
238 void Wait() { 238 void Wait() {
239 message_loop_runner_->Run(); 239 message_loop_runner_->Run();
240 content::WaitForLoadStop(preview_dialog_); 240 content::WaitForLoadStop(preview_dialog_);
241 } 241 }
242 242
243 private: 243 private:
244 // ChromeContentBrowserClient implementation: 244 // ChromeContentBrowserClient implementation:
245 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( 245 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate(
246 content::WebContents* web_contents) override { 246 content::WebContents* web_contents,
247 gfx::NativeView context) override {
247 preview_dialog_ = web_contents; 248 preview_dialog_ = web_contents;
248 observer_.reset(new WebUIJsInjectionReadyObserver(preview_dialog_, 249 observer_.reset(new WebUIJsInjectionReadyObserver(preview_dialog_,
249 browser_test_, 250 browser_test_,
250 preload_test_fixture_, 251 preload_test_fixture_,
251 preload_test_name_)); 252 preload_test_name_));
252 message_loop_runner_->Quit(); 253 message_loop_runner_->Quit();
253 return NULL; 254 return NULL;
254 } 255 }
255 256
256 WebUIBrowserTest* browser_test_; 257 WebUIBrowserTest* browser_test_;
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 } 477 }
477 478
478 GURL WebUIBrowserTest::WebUITestDataPathToURL( 479 GURL WebUIBrowserTest::WebUITestDataPathToURL(
479 const base::FilePath::StringType& path) { 480 const base::FilePath::StringType& path) {
480 base::FilePath dir_test_data; 481 base::FilePath dir_test_data;
481 EXPECT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &dir_test_data)); 482 EXPECT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &dir_test_data));
482 base::FilePath test_path(dir_test_data.Append(kWebUITestFolder).Append(path)); 483 base::FilePath test_path(dir_test_data.Append(kWebUITestFolder).Append(path));
483 EXPECT_TRUE(base::PathExists(test_path)); 484 EXPECT_TRUE(base::PathExists(test_path));
484 return net::FilePathToFileURL(test_path); 485 return net::FilePathToFileURL(test_path);
485 } 486 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | content/browser/compositor/browser_compositor_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698