diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-11-17 23:34:56 (GMT) |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-11-17 23:34:56 (GMT) |
commit | b6fe6899bef6dd90572fc0e7f12912d9ad87a19e (patch) | |
tree | 6592fa7d6689ab448669d98dcdf4171d853052ce /test | |
parent | bf26ca01f23e432f8b2355fd700707ba217a7605 (diff) | |
download | googletest-b6fe6899bef6dd90572fc0e7f12912d9ad87a19e.zip googletest-b6fe6899bef6dd90572fc0e7f12912d9ad87a19e.tar.gz googletest-b6fe6899bef6dd90572fc0e7f12912d9ad87a19e.tar.bz2 |
Implements the element_type typedef in testing::internal::scoped_ptr. This is needed to test gmock's IsNull/NotNull with it.
Diffstat (limited to 'test')
-rw-r--r-- | test/gtest-port_test.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/gtest-port_test.cc b/test/gtest-port_test.cc index 0fbe5c5..a2b0059 100644 --- a/test/gtest-port_test.cc +++ b/test/gtest-port_test.cc @@ -53,6 +53,14 @@ namespace testing { namespace internal { +// Tests that the element_type typedef is available in scoped_ptr and refers +// to the parameter type. +TEST(ScopedPtrTest, DefinesElementType) { + StaticAssertTypeEq<int, ::testing::internal::scoped_ptr<int>::element_type>(); +} + +// TODO(vladl@google.com): Implement THE REST of scoped_ptr tests. + TEST(GtestCheckSyntaxTest, BehavesLikeASingleStatement) { if (AlwaysFalse()) GTEST_CHECK_(false) << "This should never be executed; " |