Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
d4144d4e
Commit
d4144d4e
authored
Feb 09, 2021
by
Abseil Team
Committed by
Andy Soffer
Feb 11, 2021
Browse files
Googletest export
Revert include guard fix PiperOrigin-RevId: 356588893
parent
0b4ecf54
Changes
46
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
61 additions
and
60 deletions
+61
-60
googletest/include/gtest/gtest-spi.h
googletest/include/gtest/gtest-spi.h
+3
-3
googletest/include/gtest/gtest-test-part.h
googletest/include/gtest/gtest-test-part.h
+3
-3
googletest/include/gtest/gtest-typed-test.h
googletest/include/gtest/gtest-typed-test.h
+3
-3
googletest/include/gtest/gtest.h
googletest/include/gtest/gtest.h
+3
-3
googletest/include/gtest/gtest_pred_impl.h
googletest/include/gtest/gtest_pred_impl.h
+3
-3
googletest/include/gtest/gtest_prod.h
googletest/include/gtest/gtest_prod.h
+3
-3
googletest/include/gtest/internal/custom/gtest-port.h
googletest/include/gtest/internal/custom/gtest-port.h
+3
-3
googletest/include/gtest/internal/custom/gtest-printers.h
googletest/include/gtest/internal/custom/gtest-printers.h
+3
-3
googletest/include/gtest/internal/custom/gtest.h
googletest/include/gtest/internal/custom/gtest.h
+3
-3
googletest/include/gtest/internal/gtest-death-test-internal.h
...letest/include/gtest/internal/gtest-death-test-internal.h
+3
-3
googletest/include/gtest/internal/gtest-filepath.h
googletest/include/gtest/internal/gtest-filepath.h
+3
-3
googletest/include/gtest/internal/gtest-internal.h
googletest/include/gtest/internal/gtest-internal.h
+3
-3
googletest/include/gtest/internal/gtest-param-util.h
googletest/include/gtest/internal/gtest-param-util.h
+3
-3
googletest/include/gtest/internal/gtest-port-arch.h
googletest/include/gtest/internal/gtest-port-arch.h
+3
-3
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+3
-3
googletest/include/gtest/internal/gtest-string.h
googletest/include/gtest/internal/gtest-string.h
+3
-3
googletest/include/gtest/internal/gtest-type-util.h
googletest/include/gtest/internal/gtest-type-util.h
+3
-3
googletest/samples/prime_tables.h
googletest/samples/prime_tables.h
+3
-3
googletest/samples/sample1.h
googletest/samples/sample1.h
+3
-3
googletest/samples/sample2.h
googletest/samples/sample2.h
+4
-3
No files found.
googletest/include/gtest/gtest-spi.h
View file @
d4144d4e
...
...
@@ -33,8 +33,8 @@
// GOOGLETEST_CM0004 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_GTEST_SPI_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_GTEST_SPI_H_
#ifndef GTEST_INCLUDE_GTEST_GTEST_SPI_H_
#define GTEST_INCLUDE_GTEST_GTEST_SPI_H_
#include "gtest/gtest.h"
...
...
@@ -235,4 +235,4 @@ GTEST_DISABLE_MSC_WARNINGS_POP_() // 4251
}\
} while (::testing::internal::AlwaysFalse())
#endif // G
OOGLE
TEST_INCLUDE_GTEST_GTEST_SPI_H_
#endif // GTEST_INCLUDE_GTEST_GTEST_SPI_H_
googletest/include/gtest/gtest-test-part.h
View file @
d4144d4e
...
...
@@ -29,8 +29,8 @@
//
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
#ifndef GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
#define GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
#include <iosfwd>
#include <vector>
...
...
@@ -181,4 +181,4 @@ class GTEST_API_ HasNewFatalFailureHelper
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
#endif // G
OOGLE
TEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
#endif // GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
googletest/include/gtest/gtest-typed-test.h
View file @
d4144d4e
...
...
@@ -29,8 +29,8 @@
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_
#ifndef GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_
#define GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_
// This header implements typed tests and type-parameterized tests.
...
...
@@ -326,4 +326,4 @@ INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, MyTypes);
INSTANTIATE_TYPED_TEST_SUITE_P
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI_
#endif // G
OOGLE
TEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_
#endif // GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_
googletest/include/gtest/gtest.h
View file @
d4144d4e
...
...
@@ -49,8 +49,8 @@
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_GTEST_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_GTEST_H_
#ifndef GTEST_INCLUDE_GTEST_GTEST_H_
#define GTEST_INCLUDE_GTEST_GTEST_H_
#include <cstddef>
#include <limits>
...
...
@@ -2473,4 +2473,4 @@ inline int RUN_ALL_TESTS() {
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
#endif // G
OOGLE
TEST_INCLUDE_GTEST_GTEST_H_
#endif // GTEST_INCLUDE_GTEST_GTEST_H_
googletest/include/gtest/gtest_pred_impl.h
View file @
d4144d4e
...
...
@@ -33,8 +33,8 @@
// Implements a family of generic predicate assertion macros.
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
#ifndef GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
#define GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
#include "gtest/gtest.h"
...
...
@@ -356,4 +356,4 @@ AssertionResult AssertPred5Helper(const char* pred_text,
}
// namespace testing
#endif // G
OOGLE
TEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
#endif // GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
googletest/include/gtest/gtest_prod.h
View file @
d4144d4e
...
...
@@ -31,8 +31,8 @@
// Google C++ Testing and Mocking Framework definitions useful in production code.
// GOOGLETEST_CM0003 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_GTEST_PROD_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_GTEST_PROD_H_
#ifndef GTEST_INCLUDE_GTEST_GTEST_PROD_H_
#define GTEST_INCLUDE_GTEST_GTEST_PROD_H_
// When you need to test the private or protected members of a class,
// use the FRIEND_TEST macro to declare your tests as friends of the
...
...
@@ -58,4 +58,4 @@
#define FRIEND_TEST(test_case_name, test_name)\
friend class test_case_name##_##test_name##_Test
#endif // G
OOGLE
TEST_INCLUDE_GTEST_GTEST_PROD_H_
#endif // GTEST_INCLUDE_GTEST_GTEST_PROD_H_
googletest/include/gtest/internal/custom/gtest-port.h
View file @
d4144d4e
...
...
@@ -31,7 +31,7 @@
//
// ** Custom implementation starts here **
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PORT_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PORT_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PORT_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PORT_H_
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PORT_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PORT_H_
googletest/include/gtest/internal/custom/gtest-printers.h
View file @
d4144d4e
...
...
@@ -36,7 +36,7 @@
//
// ** Custom implementation starts here **
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
googletest/include/gtest/internal/custom/gtest.h
View file @
d4144d4e
...
...
@@ -31,7 +31,7 @@
//
// ** Custom implementation starts here **
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_H_
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_H_
googletest/include/gtest/internal/gtest-death-test-internal.h
View file @
d4144d4e
...
...
@@ -33,8 +33,8 @@
// death tests. They are subject to change without notice.
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
#include "gtest/gtest-matchers.h"
#include "gtest/internal/gtest-internal.h"
...
...
@@ -301,4 +301,4 @@ InternalRunDeathTestFlag* ParseInternalRunDeathTestFlag();
}
// namespace internal
}
// namespace testing
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
googletest/include/gtest/internal/gtest-filepath.h
View file @
d4144d4e
...
...
@@ -37,8 +37,8 @@
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
#include "gtest/internal/gtest-string.h"
...
...
@@ -208,4 +208,4 @@ class GTEST_API_ FilePath {
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
googletest/include/gtest/internal/gtest-internal.h
View file @
d4144d4e
...
...
@@ -34,8 +34,8 @@
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
#include "gtest/internal/gtest-port.h"
...
...
@@ -1557,4 +1557,4 @@ class NeverThrown {
test_suite_name, test_name)>); \
void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
googletest/include/gtest/internal/gtest-param-util.h
View file @
d4144d4e
...
...
@@ -32,8 +32,8 @@
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_
#include <ctype.h>
...
...
@@ -944,4 +944,4 @@ class CartesianProductHolder {
}
// namespace internal
}
// namespace testing
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_
googletest/include/gtest/internal/gtest-port-arch.h
View file @
d4144d4e
...
...
@@ -32,8 +32,8 @@
// This header file defines the GTEST_OS_* macro.
// It is separate from gtest-port.h so that custom/gtest-port.h can include it.
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
// Determines the platform on which Google Test is compiled.
#ifdef __CYGWIN__
...
...
@@ -109,4 +109,4 @@
#define GTEST_OS_ESP32 1
#endif // __CYGWIN__
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
googletest/include/gtest/internal/gtest-port.h
View file @
d4144d4e
...
...
@@ -40,8 +40,8 @@
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
// Environment-describing macros
// -----------------------------
...
...
@@ -2368,4 +2368,4 @@ using Variant = ::std::variant<T...>;
#endif // __has_include
#endif // GTEST_HAS_ABSL
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
googletest/include/gtest/internal/gtest-string.h
View file @
d4144d4e
...
...
@@ -38,8 +38,8 @@
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
#ifdef __BORLANDC__
// string.h is not guaranteed to provide strcpy on C++ Builder.
...
...
@@ -172,4 +172,4 @@ GTEST_API_ std::string StringStreamToString(::std::stringstream* stream);
}
// namespace internal
}
// namespace testing
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
googletest/include/gtest/internal/gtest-type-util.h
View file @
d4144d4e
...
...
@@ -32,8 +32,8 @@
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
#define G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
#include "gtest/internal/gtest-port.h"
...
...
@@ -180,4 +180,4 @@ using Types = internal::ProxyTypeList<Ts...>;
}
// namespace testing
#endif // G
OOGLE
TEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
googletest/samples/prime_tables.h
View file @
d4144d4e
...
...
@@ -33,8 +33,8 @@
// prime and determines a next prime number. This interface is used
// in Google Test samples demonstrating use of parameterized tests.
#ifndef G
OOGLE
TEST_SAMPLES_PRIME_TABLES_H_
#define G
OOGLE
TEST_SAMPLES_PRIME_TABLES_H_
#ifndef GTEST_SAMPLES_PRIME_TABLES_H_
#define GTEST_SAMPLES_PRIME_TABLES_H_
#include <algorithm>
...
...
@@ -123,4 +123,4 @@ class PreCalculatedPrimeTable : public PrimeTable {
void
operator
=
(
const
PreCalculatedPrimeTable
&
rhs
);
};
#endif // G
OOGLE
TEST_SAMPLES_PRIME_TABLES_H_
#endif // GTEST_SAMPLES_PRIME_TABLES_H_
googletest/samples/sample1.h
View file @
d4144d4e
...
...
@@ -29,8 +29,8 @@
// A sample program demonstrating using Google C++ testing framework.
#ifndef G
OOGLE
TEST_SAMPLES_SAMPLE1_H_
#define G
OOGLE
TEST_SAMPLES_SAMPLE1_H_
#ifndef GTEST_SAMPLES_SAMPLE1_H_
#define GTEST_SAMPLES_SAMPLE1_H_
// Returns n! (the factorial of n). For negative n, n! is defined to be 1.
int
Factorial
(
int
n
);
...
...
@@ -38,4 +38,4 @@ int Factorial(int n);
// Returns true if and only if n is a prime number.
bool
IsPrime
(
int
n
);
#endif // G
OOGLE
TEST_SAMPLES_SAMPLE1_H_
#endif // GTEST_SAMPLES_SAMPLE1_H_
googletest/samples/sample2.h
View file @
d4144d4e
...
...
@@ -29,8 +29,8 @@
// A sample program demonstrating using Google C++ testing framework.
#ifndef G
OOGLE
TEST_SAMPLES_SAMPLE2_H_
#define G
OOGLE
TEST_SAMPLES_SAMPLE2_H_
#ifndef GTEST_SAMPLES_SAMPLE2_H_
#define GTEST_SAMPLES_SAMPLE2_H_
#include <string.h>
...
...
@@ -77,4 +77,5 @@ class MyString {
void
Set
(
const
char
*
c_string
);
};
#endif // GOOGLETEST_SAMPLES_SAMPLE2_H_
#endif // GTEST_SAMPLES_SAMPLE2_H_
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment