| 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 #ifndef BASE_TEST_MOCK_LOG_H_ | 5 #ifndef BASE_TEST_MOCK_LOG_H_ |
| 6 #define BASE_TEST_MOCK_LOG_H_ | 6 #define BASE_TEST_MOCK_LOG_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 11 #include "base/macros.h" | 13 #include "base/macros.h" |
| 12 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 14 | 16 |
| 15 namespace base { | 17 namespace base { |
| 16 namespace test { | 18 namespace test { |
| 17 | 19 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // The previous handler to restore when the MockLog is destroyed. | 91 // The previous handler to restore when the MockLog is destroyed. |
| 90 logging::LogMessageHandlerFunction previous_handler_; | 92 logging::LogMessageHandlerFunction previous_handler_; |
| 91 | 93 |
| 92 DISALLOW_COPY_AND_ASSIGN(MockLog); | 94 DISALLOW_COPY_AND_ASSIGN(MockLog); |
| 93 }; | 95 }; |
| 94 | 96 |
| 95 } // namespace test | 97 } // namespace test |
| 96 } // namespace base | 98 } // namespace base |
| 97 | 99 |
| 98 #endif // BASE_TEST_MOCK_LOG_H_ | 100 #endif // BASE_TEST_MOCK_LOG_H_ |
| OLD | NEW |