| 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 <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/message_loop/message_loop_proxy.h" | |
| 13 #include "components/domain_reliability/beacon.h" | 12 #include "components/domain_reliability/beacon.h" |
| 14 #include "components/domain_reliability/dispatcher.h" | 13 #include "components/domain_reliability/dispatcher.h" |
| 15 #include "components/domain_reliability/scheduler.h" | 14 #include "components/domain_reliability/scheduler.h" |
| 16 #include "components/domain_reliability/test_util.h" | 15 #include "components/domain_reliability/test_util.h" |
| 17 #include "components/domain_reliability/uploader.h" | 16 #include "components/domain_reliability/uploader.h" |
| 18 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 19 #include "net/url_request/url_request_test_util.h" | 18 #include "net/url_request/url_request_test_util.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 20 |
| 22 namespace domain_reliability { | 21 namespace domain_reliability { |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 result.status = DomainReliabilityUploader::UploadResult::SUCCESS; | 235 result.status = DomainReliabilityUploader::UploadResult::SUCCESS; |
| 237 CallUploadCallback(result); | 236 CallUploadCallback(result); |
| 238 | 237 |
| 239 EXPECT_TRUE(CheckNoBeacons()); | 238 EXPECT_TRUE(CheckNoBeacons()); |
| 240 EXPECT_TRUE(CheckCounts(0, 0, 0)); | 239 EXPECT_TRUE(CheckCounts(0, 0, 0)); |
| 241 EXPECT_TRUE(CheckCounts(1, 0, 0)); | 240 EXPECT_TRUE(CheckCounts(1, 0, 0)); |
| 242 } | 241 } |
| 243 | 242 |
| 244 } // namespace | 243 } // namespace |
| 245 } // namespace domain_reliability | 244 } // namespace domain_reliability |
| OLD | NEW |