| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include <stdarg.h> | |
| 6 | |
| 7 #include "base/string_util.h" | |
| 8 #include "crash-reporter/system_logging_mock.h" | |
| 9 | |
| 10 void SystemLoggingMock::LogInfo(const char *format, ...) { | |
| 11 va_list vl; | |
| 12 va_start(vl, format); | |
| 13 log_ += ident_ + "info: "; | |
| 14 StringAppendV(&log_, format, vl); | |
| 15 log_ += "\n"; | |
| 16 va_end(vl); | |
| 17 } | |
| 18 | |
| 19 void SystemLoggingMock::LogWarning(const char *format, ...) { | |
| 20 va_list vl; | |
| 21 va_start(vl, format); | |
| 22 log_ += ident_ + "warning: "; | |
| 23 StringAppendV(&log_, format, vl); | |
| 24 log_ += "\n"; | |
| 25 va_end(vl); | |
| 26 } | |
| 27 | |
| 28 void SystemLoggingMock::LogError(const char *format, ...) { | |
| 29 va_list vl; | |
| 30 va_start(vl, format); | |
| 31 log_ += ident_ + "error: "; | |
| 32 StringAppendV(&log_, format, vl); | |
| 33 log_ += "\n"; | |
| 34 va_end(vl); | |
| 35 } | |
| 36 | |
| 37 void SystemLoggingMock::set_accumulating(bool value) { | |
| 38 } | |
| 39 | |
| 40 std::string SystemLoggingMock::get_accumulator() { | |
| 41 return ""; | |
| 42 } | |
| OLD | NEW |