diff --git a/compat/test.h b/compat/test.h | |
index 8a912c9..d778e0e 100644 | |
--- a/compat/test.h | |
+++ b/compat/test.h | |
@@ -7,4 +7,10 @@ | |
#include <gtest/gtest.h> | |
+#include <base/macros.h> | |
+#ifndef arraysize | |
+#include <base/stl_util.h> | |
+#define arraysize(x) (base::size((x))) | |
+#endif | |
+ | |
#endif // CHROMIUMOS_WIDE_PROFILING_COMPAT_TEST_H_ |