| Index: src/platform/crash/system_logging_mock.cc
|
| diff --git a/src/platform/crash/system_logging_mock.cc b/src/platform/crash/system_logging_mock.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3da1956202a9b96afb07ecc25dc992cb76772813
|
| --- /dev/null
|
| +++ b/src/platform/crash/system_logging_mock.cc
|
| @@ -0,0 +1,35 @@
|
| +// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include <stdarg.h>
|
| +
|
| +#include "base/string_util.h"
|
| +#include "crash/system_logging_mock.h"
|
| +
|
| +void SystemLoggingMock::LogInfo(const char *format, ...) {
|
| + va_list vl;
|
| + va_start(vl, format);
|
| + log_ += ident_ + "info: ";
|
| + StringAppendV(&log_, format, vl);
|
| + log_ += "\n";
|
| + va_end(vl);
|
| +}
|
| +
|
| +void SystemLoggingMock::LogWarning(const char *format, ...) {
|
| + va_list vl;
|
| + va_start(vl, format);
|
| + log_ += ident_ + "warning: ";
|
| + StringAppendV(&log_, format, vl);
|
| + log_ += "\n";
|
| + va_end(vl);
|
| +}
|
| +
|
| +void SystemLoggingMock::LogError(const char *format, ...) {
|
| + va_list vl;
|
| + va_start(vl, format);
|
| + log_ += ident_ + "error: ";
|
| + StringAppendV(&log_, format, vl);
|
| + log_ += "\n";
|
| + va_end(vl);
|
| +}
|
|
|