[macros] Upstream Google3 changes

- Disables FRIEND_TEST
- Removes gtest_prod.h dependency

Change-Id: I614f633749f3197989ac4a0d9d5faa6ec03ed59d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2982481
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75372}
This commit is contained in:
Victor Gomes 2021-06-23 20:32:31 +02:00 committed by V8 LUCI CQ
parent 9a4bcc31e1
commit bd80ad89a1
2 changed files with 7 additions and 0 deletions

View File

@ -422,4 +422,9 @@ bool is_inbounds(float_t v) {
#define IF_TSAN(V, ...)
#endif // V8_ENABLE_WEBASSEMBLY
#ifdef GOOGLE3
// Disable FRIEND_TEST macro in Google3.
#define FRIEND_TEST(test_case_name, test_name)
#endif
#endif // V8_BASE_MACROS_H_

View File

@ -7,4 +7,6 @@
// and testing/gmock, instead of directly including files in
// third_party/googletest.
#if !defined(GOOGLE3)
#include "third_party/googletest/src/googletest/include/gtest/gtest_prod.h"
#endif