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

Side by Side Diff: chrome/browser/net/dns_probe_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <set> 5 #include <set>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 int actual_delayed_probe_count = 422 int actual_delayed_probe_count =
423 delaying_dns_probe_service_->delayed_probe_count(); 423 delaying_dns_probe_service_->delayed_probe_count();
424 EXPECT_EQ(expected_delayed_probe_count, actual_delayed_probe_count); 424 EXPECT_EQ(expected_delayed_probe_count, actual_delayed_probe_count);
425 425
426 delaying_dns_probe_service_->StartDelayedProbes(); 426 delaying_dns_probe_service_->StartDelayedProbes();
427 } 427 }
428 428
429 class DnsProbeBrowserTest : public InProcessBrowserTest { 429 class DnsProbeBrowserTest : public InProcessBrowserTest {
430 public: 430 public:
431 DnsProbeBrowserTest(); 431 DnsProbeBrowserTest();
432 virtual ~DnsProbeBrowserTest(); 432 ~DnsProbeBrowserTest() override;
433 433
434 void SetUpOnMainThread() override; 434 void SetUpOnMainThread() override;
435 void TearDownOnMainThread() override; 435 void TearDownOnMainThread() override;
436 436
437 protected: 437 protected:
438 // Sets the browser object that other methods apply to, and that has the 438 // Sets the browser object that other methods apply to, and that has the
439 // DnsProbeStatus messages of its currently active tab monitored. 439 // DnsProbeStatus messages of its currently active tab monitored.
440 void SetActiveBrowser(Browser* browser); 440 void SetActiveBrowser(Browser* browser);
441 441
442 void SetCorrectionServiceBroken(bool broken); 442 void SetCorrectionServiceBroken(bool broken);
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 989
990 EXPECT_EQ(chrome_common_net::DNS_PROBE_FINISHED_INCONCLUSIVE, 990 EXPECT_EQ(chrome_common_net::DNS_PROBE_FINISHED_INCONCLUSIVE,
991 WaitForSentStatus()); 991 WaitForSentStatus());
992 EXPECT_EQ(0, pending_status_count()); 992 EXPECT_EQ(0, pending_status_count());
993 ExpectDisplayingLocalErrorPage("ERR_NAME_NOT_RESOLVED"); 993 ExpectDisplayingLocalErrorPage("ERR_NAME_NOT_RESOLVED");
994 } 994 }
995 995
996 } // namespace 996 } // namespace
997 997
998 } // namespace chrome_browser_net 998 } // namespace chrome_browser_net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698