Prefix LOG and CHECK with AOS_
This prepares us for introducing glog more widely and transitioning
things over where they make sense.
Change-Id: Ic6c208882407bc2153fe875ffc736d66f5c8ade5
diff --git a/aos/testing/prevent_exit.cc b/aos/testing/prevent_exit.cc
index 3190698..ed6644b 100644
--- a/aos/testing/prevent_exit.cc
+++ b/aos/testing/prevent_exit.cc
@@ -16,7 +16,7 @@
} // namespace
void PreventExit() {
- CHECK_EQ(atexit(TerminateExitHandler), 0);
+ AOS_CHECK_EQ(atexit(TerminateExitHandler), 0);
}
} // namespace testing
diff --git a/aos/testing/test_logging_test.cc b/aos/testing/test_logging_test.cc
index 9dd6eba..f39c6cf 100644
--- a/aos/testing/test_logging_test.cc
+++ b/aos/testing/test_logging_test.cc
@@ -16,11 +16,11 @@
::std::thread thread([]() {
for (int i = 0; i < 1000; ++i) {
- LOG(INFO, "test from thread\n");
+ AOS_LOG(INFO, "test from thread\n");
}
});
for (int i = 0; i < 1000; ++i) {
- LOG(INFO, "not from thread\n");
+ AOS_LOG(INFO, "not from thread\n");
}
thread.join();
}
diff --git a/aos/testing/test_shm.cc b/aos/testing/test_shm.cc
index f7ddfcb..e9a637a 100644
--- a/aos/testing/test_shm.cc
+++ b/aos/testing/test_shm.cc
@@ -22,7 +22,7 @@
// "shared" memory.
void *memory = mmap(NULL, kCoreSize, PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_ANONYMOUS, -1, 0);
- CHECK_NE(memory, MAP_FAILED);
+ AOS_CHECK_NE(memory, MAP_FAILED);
aos_core_use_address_as_shared_mem(memory, kCoreSize);
@@ -30,7 +30,7 @@
}
TestSharedMemory::~TestSharedMemory() {
- PCHECK(munmap(global_core->mem_struct, kCoreSize));
+ AOS_PCHECK(munmap(global_core->mem_struct, kCoreSize));
global_core = NULL;
}