| 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 #include "net/log/test_net_log.h" | 5 #include "net/log/test_net_log.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/synchronization/lock.h" | 8 #include "base/synchronization/lock.h" |
| 8 #include "base/values.h" | 9 #include "base/values.h" |
| 9 | 10 |
| 10 namespace net { | 11 namespace net { |
| 11 | 12 |
| 12 // TestNetLog::Observer is an implementation of NetLog::ThreadSafeObserver | 13 // TestNetLog::Observer is an implementation of NetLog::ThreadSafeObserver |
| 13 // that saves messages to a buffer. | 14 // that saves messages to a buffer. |
| 14 class TestNetLog::Observer : public NetLog::ThreadSafeObserver { | 15 class TestNetLog::Observer : public NetLog::ThreadSafeObserver { |
| 15 public: | 16 public: |
| 16 Observer() {} | 17 Observer() {} |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 127 |
| 127 void BoundTestNetLog::Clear() { | 128 void BoundTestNetLog::Clear() { |
| 128 test_net_log_.Clear(); | 129 test_net_log_.Clear(); |
| 129 } | 130 } |
| 130 | 131 |
| 131 void BoundTestNetLog::SetCaptureMode(NetLogCaptureMode capture_mode) { | 132 void BoundTestNetLog::SetCaptureMode(NetLogCaptureMode capture_mode) { |
| 132 test_net_log_.SetCaptureMode(capture_mode); | 133 test_net_log_.SetCaptureMode(capture_mode); |
| 133 } | 134 } |
| 134 | 135 |
| 135 } // namespace net | 136 } // namespace net |
| OLD | NEW |