bbaa58c526418f0a621d7fc8e85d73d168a7295a |
|
20-Dec-2017 |
Primiano Tucci <primiano@google.com> |
Introduce base::PageAllocator to wrap mmap Gets rid of the various posix_memalign hacks accumulated so far. Also moves the pre-existing IsMmaped function into base/vm_test_utils.h. Change-Id: I171dc2dc01c4b69f4f711a4923a1a58c75431df6
/external/perfetto/src/tracing/test/test_shared_memory.cc
|
68323b084eac9a8cc53ff0c9354839be0a5c4dd8 |
|
18-Dec-2017 |
Primiano Tucci <primiano@google.com> |
Move WeakPtrFactory as last field: improves tests robustness. As the destruction order goes bottom-up (w.r.t. declaration order of fields), having the WeakPtrFactory as last field makes it so that the weak ptrs are invalidated as first thing during destruction. This makes it easier to write tests without having to worry too much about destruction order. Also this CL fixes a test flakiness due to the fact that TestSharedMemory didn't return page-aligned memory. Change-Id: If7218e04a138b4e69170594bf5dec723b5afe7bb
/external/perfetto/src/tracing/test/test_shared_memory.cc
|
4f9b6d7b7b2ad7b86e1577a18dc6e2df91b98164 |
|
05-Dec-2017 |
Primiano Tucci <primiano@google.com> |
Pivot source files into top-level src,include and unify test target See discussion in go/perfetto-build-files . This is to disambiguate things like #include "base/logging.h" when in the chrome tree. Also this CL unifies the test targets into two monolithic targets: perfetto_tests and perfetto_benchmarks. This is to avoid ending up with confusing binary names in the chrome tree (e.g., ipc_unittests) Bug: 68710794 Change-Id: I1768e15b661406052b2be060d7aab0f1e7443a98
/external/perfetto/src/tracing/test/test_shared_memory.cc
|