| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/data_usage/core/data_use_aggregator.h" | 5 #include "components/data_usage/core/data_use_aggregator.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 7 #include <stdint.h> | 8 #include <stdint.h> |
| 8 | 9 |
| 9 #include <map> | 10 #include <map> |
| 10 #include <string> | 11 #include <string> |
| 11 #include <vector> | 12 #include <vector> |
| 12 | 13 |
| 13 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 16 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 17 #include "components/data_usage/core/data_use.h" | 19 #include "components/data_usage/core/data_use.h" |
| 18 #include "components/data_usage/core/data_use_amortizer.h" | 20 #include "components/data_usage/core/data_use_amortizer.h" |
| 19 #include "components/data_usage/core/data_use_annotator.h" | 21 #include "components/data_usage/core/data_use_annotator.h" |
| 20 #include "net/base/load_timing_info.h" | 22 #include "net/base/load_timing_info.h" |
| 21 #include "net/base/network_change_notifier.h" | 23 #include "net/base/network_change_notifier.h" |
| 22 #include "net/base/network_delegate_impl.h" | 24 #include "net/base/network_delegate_impl.h" |
| 23 #include "net/socket/socket_test_util.h" | 25 #include "net/socket/socket_test_util.h" |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 // Off the record data use should not be reported to observers. | 422 // Off the record data use should not be reported to observers. |
| 421 data_use_aggregator()->ReportOffTheRecordDataUse(1000, 1000); | 423 data_use_aggregator()->ReportOffTheRecordDataUse(1000, 1000); |
| 422 base::MessageLoop::current()->RunUntilIdle(); | 424 base::MessageLoop::current()->RunUntilIdle(); |
| 423 EXPECT_EQ(static_cast<size_t>(0), | 425 EXPECT_EQ(static_cast<size_t>(0), |
| 424 test_observer()->observed_data_use().size()); | 426 test_observer()->observed_data_use().size()); |
| 425 } | 427 } |
| 426 | 428 |
| 427 } // namespace | 429 } // namespace |
| 428 | 430 |
| 429 } // namespace data_usage | 431 } // namespace data_usage |
| OLD | NEW |