aboutsummaryrefslogtreecommitdiffstats
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
commit600105ee3ac48a01143486e5536a5b8fff5b5b25 (patch)
treee321c70ebc0eb178e91fcbf9993cdbeb5606c8e2 /test/gtest_stress_test.cc
parentb2db677c9905a34ca6454aa526f7a0cc5cfaeca1 (diff)
downloadgoogletest-600105ee3ac48a01143486e5536a5b8fff5b5b25.tar.gz
googletest-600105ee3ac48a01143486e5536a5b8fff5b5b25.tar.bz2
googletest-600105ee3ac48a01143486e5536a5b8fff5b5b25.zip
Makes List a random-access data structure. This simplifies the implementation and makes it easier to implement test shuffling.
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 55e8bf42..3e021318 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