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 <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop/message_loop_proxy.h" | |
14 #include "base/test/test_simple_task_runner.h" | 13 #include "base/test/test_simple_task_runner.h" |
15 #include "components/domain_reliability/baked_in_configs.h" | 14 #include "components/domain_reliability/baked_in_configs.h" |
16 #include "components/domain_reliability/beacon.h" | 15 #include "components/domain_reliability/beacon.h" |
17 #include "components/domain_reliability/config.h" | 16 #include "components/domain_reliability/config.h" |
18 #include "components/domain_reliability/test_util.h" | 17 #include "components/domain_reliability/test_util.h" |
19 #include "net/base/host_port_pair.h" | 18 #include "net/base/host_port_pair.h" |
20 #include "net/base/load_flags.h" | 19 #include "net/base/load_flags.h" |
21 #include "net/http/http_response_headers.h" | 20 #include "net/http/http_response_headers.h" |
22 #include "net/http/http_util.h" | 21 #include "net/http/http_util.h" |
23 #include "net/url_request/url_request_context_getter.h" | 22 #include "net/url_request/url_request_context_getter.h" |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 request.url = GURL("http://test.wildcard/always_report"); | 417 request.url = GURL("http://test.wildcard/always_report"); |
419 OnRequestLegComplete(request); | 418 OnRequestLegComplete(request); |
420 | 419 |
421 EXPECT_TRUE(CheckRequestCounts(context1, kAlwaysReportIndex, 1u, 0u)); | 420 EXPECT_TRUE(CheckRequestCounts(context1, kAlwaysReportIndex, 1u, 0u)); |
422 EXPECT_TRUE(CheckRequestCounts(context2, kAlwaysReportIndex, 0u, 0u)); | 421 EXPECT_TRUE(CheckRequestCounts(context2, kAlwaysReportIndex, 0u, 0u)); |
423 } | 422 } |
424 | 423 |
425 } // namespace | 424 } // namespace |
426 | 425 |
427 } // namespace domain_reliability | 426 } // namespace domain_reliability |
OLD | NEW |