summaryrefslogtreecommitdiff
path: root/test/gtest_stress_test.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-07-01 22:55:05 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-07-01 22:55:05 +0000
commit449f84de9b0c48289e20f63c6d08a39bcee2021b (patch)
treee321c70ebc0eb178e91fcbf9993cdbeb5606c8e2 /test/gtest_stress_test.cc
parentb7ec0f7b3b21338babc9a6ab5a593a40634a8062 (diff)
downloadgoogletest-449f84de9b0c48289e20f63c6d08a39bcee2021b.tar.gz
Makes List a random-access data structure. This simplifies the implementation and makes it easier to implement test shuffling.
git-svn-id: http://googletest.googlecode.com/svn/trunk@280 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'test/gtest_stress_test.cc')
-rw-r--r--test/gtest_stress_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gtest_stress_test.cc b/test/gtest_stress_test.cc
index 55e8bf4..3e02131 100644
--- a/test/gtest_stress_test.cc
+++ b/test/gtest_stress_test.cc
@@ -46,7 +46,6 @@ namespace testing {
namespace {
using internal::List;
-using internal::ListNode;
using internal::String;
using internal::TestProperty;
using internal::TestPropertyKeyIs;
@@ -70,9 +69,10 @@ void ExpectKeyAndValueWereRecordedForId(const List<TestProperty>& properties,
int id,
const char* suffix) {
TestPropertyKeyIs matches_key(IdToKey(id, suffix).c_str());
- const ListNode<TestProperty>* node = properties.FindIf(matches_key);
- EXPECT_TRUE(node != NULL) << "expecting " << suffix << " node for id " << id;
- EXPECT_STREQ(IdToString(id).c_str(), node->element().value());
+ const TestProperty* property = properties.FindIf(matches_key);
+ ASSERT_TRUE(property != NULL)
+ << "expecting " << suffix << " value for id " << id;
+ EXPECT_STREQ(IdToString(id).c_str(), property->value());
}
// Calls a large number of Google Test assertions, where exactly one of them