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/context.h" | 5 #include "components/domain_reliability/context.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
13 #include "components/domain_reliability/beacon.h" | 15 #include "components/domain_reliability/beacon.h" |
14 #include "components/domain_reliability/dispatcher.h" | 16 #include "components/domain_reliability/dispatcher.h" |
15 #include "components/domain_reliability/scheduler.h" | 17 #include "components/domain_reliability/scheduler.h" |
16 #include "components/domain_reliability/test_util.h" | 18 #include "components/domain_reliability/test_util.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 beacon->chrome_error = net::OK; | 532 beacon->chrome_error = net::OK; |
531 context_->OnBeacon(beacon.Pass()); | 533 context_->OnBeacon(beacon.Pass()); |
532 context_->GetQueuedBeaconsForTesting(&beacons); | 534 context_->GetQueuedBeaconsForTesting(&beacons); |
533 EXPECT_EQ(0u, beacons.size()); | 535 EXPECT_EQ(0u, beacons.size()); |
534 } | 536 } |
535 | 537 |
536 // TODO(ttuttle): Add beacon_unittest.cc to test serialization. | 538 // TODO(ttuttle): Add beacon_unittest.cc to test serialization. |
537 | 539 |
538 } // namespace | 540 } // namespace |
539 } // namespace domain_reliability | 541 } // namespace domain_reliability |
OLD | NEW |