summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libunwindstack/tests/LogFake.cpp')
-rw-r--r--libunwindstack/tests/LogFake.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libunwindstack/tests/LogFake.cpp b/libunwindstack/tests/LogFake.cpp
index 411594a75..537ccafb3 100644
--- a/libunwindstack/tests/LogFake.cpp
+++ b/libunwindstack/tests/LogFake.cpp
@@ -25,7 +25,6 @@
25#include "LogFake.h" 25#include "LogFake.h"
26 26
27// Forward declarations. 27// Forward declarations.
28class Backtrace;
29struct EventTagMap; 28struct EventTagMap;
30struct AndroidLogEntry; 29struct AndroidLogEntry;
31 30
@@ -33,6 +32,8 @@ std::string g_fake_log_buf;
33 32
34std::string g_fake_log_print; 33std::string g_fake_log_print;
35 34
35namespace unwindstack {
36
36void ResetLogs() { 37void ResetLogs() {
37 g_fake_log_buf = ""; 38 g_fake_log_buf = "";
38 g_fake_log_print = ""; 39 g_fake_log_print = "";
@@ -46,6 +47,8 @@ std::string GetFakeLogPrint() {
46 return g_fake_log_print; 47 return g_fake_log_print;
47} 48}
48 49
50} // namespace unwindstack
51
49extern "C" int __android_log_buf_write(int bufId, int prio, const char* tag, const char* msg) { 52extern "C" int __android_log_buf_write(int bufId, int prio, const char* tag, const char* msg) {
50 g_fake_log_buf += std::to_string(bufId) + ' ' + std::to_string(prio) + ' '; 53 g_fake_log_buf += std::to_string(bufId) + ' ' + std::to_string(prio) + ' ';
51 g_fake_log_buf += tag; 54 g_fake_log_buf += tag;