OLD | NEW |
| (Empty) |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef BASE_TASK_SCHEDULER_TEST_UTILS_H_ | |
6 #define BASE_TASK_SCHEDULER_TEST_UTILS_H_ | |
7 | |
8 #include "base/logging.h" | |
9 #include "build/build_config.h" | |
10 #include "testing/gtest/include/gtest/gtest.h" | |
11 | |
12 // Death tests misbehave on Android. | |
13 #if DCHECK_IS_ON() && defined(GTEST_HAS_DEATH_TEST) && !defined(OS_ANDROID) | |
14 #define EXPECT_DCHECK_DEATH(statement, regex) EXPECT_DEATH(statement, regex) | |
15 #else | |
16 #define EXPECT_DCHECK_DEATH(statement, regex) | |
17 #endif | |
18 | |
19 #endif // BASE_TASK_SCHEDULER_TEST_UTILS_H_ | |
OLD | NEW |