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 "chrome/browser/chromeos/net/network_portal_detector_test_utils.h" | 5 #include "chrome/browser/chromeos/net/network_portal_detector_test_utils.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "base/metrics/histogram_base.h" | 13 #include "base/metrics/histogram_base.h" |
12 #include "base/metrics/histogram_samples.h" | 14 #include "base/metrics/histogram_samples.h" |
13 #include "base/metrics/statistics_recorder.h" | 15 #include "base/metrics/statistics_recorder.h" |
14 | 16 |
15 namespace chromeos { | 17 namespace chromeos { |
16 | 18 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (actual != expect_[i]) { | 61 if (actual != expect_[i]) { |
60 LOG(ERROR) << "Histogram: " << histogram_ << ", value #" << i << ", " | 62 LOG(ERROR) << "Histogram: " << histogram_ << ", value #" << i << ", " |
61 << "expected: " << expect_[i] << ", actual: " << actual; | 63 << "expected: " << expect_[i] << ", actual: " << actual; |
62 ok = false; | 64 ok = false; |
63 } | 65 } |
64 } | 66 } |
65 return ok; | 67 return ok; |
66 } | 68 } |
67 | 69 |
68 } // namespace chromeos | 70 } // namespace chromeos |
OLD | NEW |