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

Side by Side Diff: chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 // Create a service process that uses a Mock to respond to the browser in order 5 // Create a service process that uses a Mock to respond to the browser in order
6 // to test launching the browser using the cloud print policy check command 6 // to test launching the browser using the cloud print policy check command
7 // line switch. 7 // line switch.
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 MULTIPROCESS_IPC_TEST_MAIN(CloudPrintMockService_StartEnabledExpectDisabled) { 294 MULTIPROCESS_IPC_TEST_MAIN(CloudPrintMockService_StartEnabledExpectDisabled) {
295 return CloudPrintMockService_Main( 295 return CloudPrintMockService_Main(
296 base::Bind(&SetServiceWillBeDisabledExpectations)); 296 base::Bind(&SetServiceWillBeDisabledExpectations));
297 } 297 }
298 298
299 class CloudPrintProxyPolicyStartupTest : public base::MultiProcessTest, 299 class CloudPrintProxyPolicyStartupTest : public base::MultiProcessTest,
300 public IPC::Listener { 300 public IPC::Listener {
301 public: 301 public:
302 CloudPrintProxyPolicyStartupTest(); 302 CloudPrintProxyPolicyStartupTest();
303 virtual ~CloudPrintProxyPolicyStartupTest(); 303 ~CloudPrintProxyPolicyStartupTest() override;
304 304
305 virtual void SetUp() override; 305 void SetUp() override;
306 virtual void TearDown() override; 306 void TearDown() override;
307 307
308 scoped_refptr<base::MessageLoopProxy> IOMessageLoopProxy() { 308 scoped_refptr<base::MessageLoopProxy> IOMessageLoopProxy() {
309 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); 309 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
310 } 310 }
311 base::ProcessHandle Launch(const std::string& name); 311 base::ProcessHandle Launch(const std::string& name);
312 void WaitForConnect(); 312 void WaitForConnect();
313 bool Send(IPC::Message* message); 313 bool Send(IPC::Message* message);
314 void ShutdownAndWaitForExitWithTimeout(base::ProcessHandle handle); 314 void ShutdownAndWaitForExitWithTimeout(base::ProcessHandle handle);
315 315
316 // IPC::Listener implementation 316 // IPC::Listener implementation
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 // condition. 619 // condition.
620 if (should_run_loop) 620 if (should_run_loop)
621 run_loop.Run(); 621 run_loop.Run();
622 622
623 EXPECT_EQ("", prefs->GetString(prefs::kCloudPrintEmail)); 623 EXPECT_EQ("", prefs->GetString(prefs::kCloudPrintEmail));
624 624
625 ShutdownAndWaitForExitWithTimeout(handle); 625 ShutdownAndWaitForExitWithTimeout(handle);
626 content::RunAllPendingInMessageLoop(); 626 content::RunAllPendingInMessageLoop();
627 profile_manager.DeleteTestingProfile("StartBrowserWithPolicy"); 627 profile_manager.DeleteTestingProfile("StartBrowserWithPolicy");
628 } 628 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698