OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |