| OLD | NEW |
| 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 "components/domain_reliability/monitor.h" | 5 #include "components/domain_reliability/monitor.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/bind.h" | 13 #include "base/bind.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.h" |
| 14 #include "components/domain_reliability/baked_in_configs.h" | 16 #include "components/domain_reliability/baked_in_configs.h" |
| 15 #include "components/domain_reliability/beacon.h" | 17 #include "components/domain_reliability/beacon.h" |
| 16 #include "components/domain_reliability/config.h" | 18 #include "components/domain_reliability/config.h" |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 request.status = net::URLRequestStatus::FromError(net::ERR_CONNECTION_RESET); | 379 request.status = net::URLRequestStatus::FromError(net::ERR_CONNECTION_RESET); |
| 378 OnRequestLegComplete(request); | 380 OnRequestLegComplete(request); |
| 379 | 381 |
| 380 EXPECT_EQ(1u, CountQueuedBeacons(context1)); | 382 EXPECT_EQ(1u, CountQueuedBeacons(context1)); |
| 381 EXPECT_EQ(0u, CountQueuedBeacons(context2)); | 383 EXPECT_EQ(0u, CountQueuedBeacons(context2)); |
| 382 } | 384 } |
| 383 | 385 |
| 384 } // namespace | 386 } // namespace |
| 385 | 387 |
| 386 } // namespace domain_reliability | 388 } // namespace domain_reliability |
| OLD | NEW |