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

Side by Side Diff: chrome/browser/ui/webui/bidi_checker_web_ui_test.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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 (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 "chrome/browser/ui/webui/bidi_checker_web_ui_test.h" 5 #include "chrome/browser/ui/webui/bidi_checker_web_ui_test.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::MessageLoop::QuitClosure()); 73 base::MessageLoop::QuitClosure());
74 content::RunMessageLoop(); 74 content::RunMessageLoop();
75 } 75 }
76 76
77 } // namespace 77 } // namespace
78 78
79 static const base::FilePath::CharType* kBidiCheckerTestsJS = 79 static const base::FilePath::CharType* kBidiCheckerTestsJS =
80 FILE_PATH_LITERAL("bidichecker_tests.js"); 80 FILE_PATH_LITERAL("bidichecker_tests.js");
81 81
82 void WebUIBidiCheckerBrowserTest::SetUp() { 82 void WebUIBidiCheckerBrowserTest::SetUp() {
83 argv_ = CommandLine::ForCurrentProcess()->GetArgs(); 83 argv_ = base::CommandLine::ForCurrentProcess()->GetArgs();
84 } 84 }
85 85
86 void WebUIBidiCheckerBrowserTest::TearDown() { 86 void WebUIBidiCheckerBrowserTest::TearDown() {
87 // Reset command line to the way it was before the test was run. 87 // Reset command line to the way it was before the test was run.
88 CommandLine::ForCurrentProcess()->InitFromArgv(argv_); 88 base::CommandLine::ForCurrentProcess()->InitFromArgv(argv_);
89 } 89 }
90 90
91 WebUIBidiCheckerBrowserTest::~WebUIBidiCheckerBrowserTest() {} 91 WebUIBidiCheckerBrowserTest::~WebUIBidiCheckerBrowserTest() {}
92 92
93 WebUIBidiCheckerBrowserTest::WebUIBidiCheckerBrowserTest() {} 93 WebUIBidiCheckerBrowserTest::WebUIBidiCheckerBrowserTest() {}
94 94
95 void WebUIBidiCheckerBrowserTest::SetUpInProcessBrowserTestFixture() { 95 void WebUIBidiCheckerBrowserTest::SetUpInProcessBrowserTestFixture() {
96 WebUIBrowserTest::SetUpInProcessBrowserTestFixture(); 96 WebUIBrowserTest::SetUpInProcessBrowserTestFixture();
97 WebUIBrowserTest::AddLibrary(WebUIBidiCheckerLibraryJSPath()); 97 WebUIBrowserTest::AddLibrary(WebUIBidiCheckerLibraryJSPath());
98 WebUIBrowserTest::AddLibrary(base::FilePath(kBidiCheckerTestsJS)); 98 WebUIBrowserTest::AddLibrary(base::FilePath(kBidiCheckerTestsJS));
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 // chrome://history-frame 721 // chrome://history-frame
722 //============================== 722 //==============================
723 723
724 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestHistoryFrame) { 724 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestHistoryFrame) {
725 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); 725 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
726 } 726 }
727 727
728 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestHistoryFrame) { 728 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestHistoryFrame) {
729 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL); 729 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
730 } 730 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | chrome/browser/ui/webui/chromeos/first_run/first_run_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698