OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "net/log/file_net_log_observer.h" | 5 #include "net/log/file_net_log_observer.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
16 #include "base/files/scoped_file.h" | 16 #include "base/files/scoped_file.h" |
17 #include "base/files/scoped_temp_dir.h" | 17 #include "base/files/scoped_temp_dir.h" |
18 #include "base/json/json_reader.h" | 18 #include "base/json/json_reader.h" |
19 #include "base/json/json_writer.h" | 19 #include "base/json/json_writer.h" |
| 20 #include "base/memory/ptr_util.h" |
20 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
21 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" |
22 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
23 #include "base/values.h" | 24 #include "base/values.h" |
24 #include "net/base/test_completion_callback.h" | 25 #include "net/base/test_completion_callback.h" |
25 #include "net/log/net_log_entry.h" | 26 #include "net/log/net_log_entry.h" |
26 #include "net/log/net_log_event_type.h" | 27 #include "net/log/net_log_event_type.h" |
27 #include "net/log/net_log_parameters_callback.h" | 28 #include "net/log/net_log_parameters_callback.h" |
28 #include "net/log/net_log_source.h" | 29 #include "net/log/net_log_source.h" |
29 #include "net/log/net_log_source_type.h" | 30 #include "net/log/net_log_source_type.h" |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 // Check that there are events written to all files. | 833 // Check that there are events written to all files. |
833 for (int i = 0; i < kTotalNumFiles; i++) { | 834 for (int i = 0; i < kTotalNumFiles; i++) { |
834 ASSERT_GE(GetFileSize(GetEventFilePath(i)), | 835 ASSERT_GE(GetFileSize(GetEventFilePath(i)), |
835 static_cast<int64_t>(kEventSize)); | 836 static_cast<int64_t>(kEventSize)); |
836 } | 837 } |
837 } | 838 } |
838 | 839 |
839 } // namespace | 840 } // namespace |
840 | 841 |
841 } // namespace net | 842 } // namespace net |
OLD | NEW |