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 "chrome/browser/android/data_usage/external_data_use_observer.h" | 5 #include "chrome/browser/android/data_usage/external_data_use_observer.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <map> | 10 #include <map> |
8 #include <string> | 11 #include <string> |
9 #include <vector> | 12 #include <vector> |
10 | 13 |
11 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
12 #include "base/metrics/field_trial.h" | 15 #include "base/metrics/field_trial.h" |
13 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
14 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
16 #include "base/test/histogram_tester.h" | 19 #include "base/test/histogram_tester.h" |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 "DataUsage.ReportSubmissionResult", | 484 "DataUsage.ReportSubmissionResult", |
482 ExternalDataUseObserver::DATAUSAGE_REPORT_SUBMISSION_TIMED_OUT, 1); | 485 ExternalDataUseObserver::DATAUSAGE_REPORT_SUBMISSION_TIMED_OUT, 1); |
483 histogram_tester.ExpectUniqueSample( | 486 histogram_tester.ExpectUniqueSample( |
484 "DataUsage.ReportSubmission.Bytes.TimedOut", | 487 "DataUsage.ReportSubmission.Bytes.TimedOut", |
485 default_upload_bytes() + default_download_bytes(), 1); | 488 default_upload_bytes() + default_download_bytes(), 1); |
486 } | 489 } |
487 | 490 |
488 } // namespace android | 491 } // namespace android |
489 | 492 |
490 } // namespace chrome | 493 } // namespace chrome |
OLD | NEW |