diff options
Diffstat (limited to 'libunwindstack/tests/LogFake.cpp')
-rw-r--r-- | libunwindstack/tests/LogFake.cpp | 5 |
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. |
28 | class Backtrace; | ||
29 | struct EventTagMap; | 28 | struct EventTagMap; |
30 | struct AndroidLogEntry; | 29 | struct AndroidLogEntry; |
31 | 30 | ||
@@ -33,6 +32,8 @@ std::string g_fake_log_buf; | |||
33 | 32 | ||
34 | std::string g_fake_log_print; | 33 | std::string g_fake_log_print; |
35 | 34 | ||
35 | namespace unwindstack { | ||
36 | |||
36 | void ResetLogs() { | 37 | void 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 | |||
49 | extern "C" int __android_log_buf_write(int bufId, int prio, const char* tag, const char* msg) { | 52 | extern "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; |