OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef NET_LOG_TEST_NET_LOG_H_ | 5 #ifndef NET_LOG_TEST_NET_LOG_H_ |
6 #define NET_LOG_TEST_NET_LOG_H_ | 6 #define NET_LOG_TEST_NET_LOG_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/basictypes.h" | |
12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" |
13 #include "net/log/net_log.h" | 15 #include "net/log/net_log.h" |
14 #include "net/log/test_net_log_entry.h" | 16 #include "net/log/test_net_log_entry.h" |
15 | 17 |
16 namespace net { | 18 namespace net { |
17 | 19 |
18 // TestNetLog is NetLog subclass which records all NetLog events that occur and | 20 // TestNetLog is NetLog subclass which records all NetLog events that occur and |
19 // their parameters. It is intended for testing only, and is part of the | 21 // their parameters. It is intended for testing only, and is part of the |
20 // net_test_support project. | 22 // net_test_support project. |
21 class TestNetLog : public NetLog { | 23 class TestNetLog : public NetLog { |
22 public: | 24 public: |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 private: | 79 private: |
78 TestNetLog test_net_log_; | 80 TestNetLog test_net_log_; |
79 const BoundNetLog net_log_; | 81 const BoundNetLog net_log_; |
80 | 82 |
81 DISALLOW_COPY_AND_ASSIGN(BoundTestNetLog); | 83 DISALLOW_COPY_AND_ASSIGN(BoundTestNetLog); |
82 }; | 84 }; |
83 | 85 |
84 } // namespace net | 86 } // namespace net |
85 | 87 |
86 #endif // NET_LOG_TEST_NET_LOG_H_ | 88 #endif // NET_LOG_TEST_NET_LOG_H_ |
OLD | NEW |