| 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/scheduler.h" | 5 #include "components/domain_reliability/scheduler.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 9 #include "components/domain_reliability/config.h" | 11 #include "components/domain_reliability/config.h" |
| 10 #include "components/domain_reliability/test_util.h" | 12 #include "components/domain_reliability/test_util.h" |
| 11 #include "components/domain_reliability/uploader.h" | 13 #include "components/domain_reliability/uploader.h" |
| 12 #include "components/domain_reliability/util.h" | 14 #include "components/domain_reliability/util.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 16 |
| 15 namespace domain_reliability { | 17 namespace domain_reliability { |
| 16 namespace { | 18 namespace { |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 ASSERT_TRUE(CheckPendingUpload(min_delay(), max_delay())); | 276 ASSERT_TRUE(CheckPendingUpload(min_delay(), max_delay())); |
| 275 | 277 |
| 276 time_.Advance(min_delay()); | 278 time_.Advance(min_delay()); |
| 277 ASSERT_TRUE(CheckStartingUpload(0)); | 279 ASSERT_TRUE(CheckStartingUpload(0)); |
| 278 NotifySuccessfulUpload(); | 280 NotifySuccessfulUpload(); |
| 279 ASSERT_TRUE(CheckNoPendingUpload()); | 281 ASSERT_TRUE(CheckNoPendingUpload()); |
| 280 } | 282 } |
| 281 | 283 |
| 282 } // namespace | 284 } // namespace |
| 283 } // namespace domain_reliability | 285 } // namespace domain_reliability |
| OLD | NEW |