Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: src/platform/crash/system_logging_mock.h

Issue 1702008: Add crash_reporter functionality (Closed)
Patch Set: add set -e Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/crash/system_logging.cc ('k') | src/platform/crash/system_logging_mock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/crash/system_logging_mock.h
diff --git a/src/platform/crash/system_logging_mock.h b/src/platform/crash/system_logging_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..983c724672a4ff503d62ff3af9a19cab7f51e259
--- /dev/null
+++ b/src/platform/crash/system_logging_mock.h
@@ -0,0 +1,27 @@
+// 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.
+
+#ifndef CRASH_SYSTEM_LOGGING_MOCK_H_
+#define CRASH_SYSTEM_LOGGING_MOCK_H_
+
+#include <string>
+
+#include "crash/system_logging.h"
+
+class SystemLoggingMock : public SystemLogging {
+ public:
+ void Initialize(const char *ident) {}
+ virtual void LogInfo(const char *format, ...);
+ virtual void LogWarning(const char *format, ...);
+ virtual void LogError(const char *format, ...);
+
+ const std::string &log() { return log_; }
+
+ private:
+ static std::string identity_;
+ std::string log_;
+ std::string ident_;
+};
+
+#endif // CRASH_SYSTEM_LOGGING_H_
« no previous file with comments | « src/platform/crash/system_logging.cc ('k') | src/platform/crash/system_logging_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698