summaryrefslogtreecommitdiffstats
path: root/include/gtest/gtest.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-07-01 22:55:05 (GMT)
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-07-01 22:55:05 (GMT)
commit600105ee3ac48a01143486e5536a5b8fff5b5b25 (patch)
treee321c70ebc0eb178e91fcbf9993cdbeb5606c8e2 /include/gtest/gtest.h
parentb2db677c9905a34ca6454aa526f7a0cc5cfaeca1 (diff)
downloadgoogletest-600105ee3ac48a01143486e5536a5b8fff5b5b25.zip
googletest-600105ee3ac48a01143486e5536a5b8fff5b5b25.tar.gz
googletest-600105ee3ac48a01143486e5536a5b8fff5b5b25.tar.bz2
Makes List a random-access data structure. This simplifies the implementation and makes it easier to implement test shuffling.
Diffstat (limited to 'include/gtest/gtest.h')
-rw-r--r--include/gtest/gtest.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/gtest/gtest.h b/include/gtest/gtest.h
index 7d06078..f8aa91e 100644
--- a/include/gtest/gtest.h
+++ b/include/gtest/gtest.h
@@ -434,13 +434,14 @@ class TestResult {
TimeInMillis elapsed_time() const { return elapsed_time_; }
// Returns the i-th test part result among all the results. i can range
- // from 0 to test_property_count() - 1. If i is not in that range, returns
- // NULL.
- const TestPartResult* GetTestPartResult(int i) const;
+ // from 0 to test_property_count() - 1. If i is not in that range, aborts
+ // the program.
+ const TestPartResult& GetTestPartResult(int i) const;
// Returns the i-th test property. i can range from 0 to
- // test_property_count() - 1. If i is not in that range, returns NULL.
- const TestProperty* GetTestProperty(int i) const;
+ // test_property_count() - 1. If i is not in that range, aborts the
+ // program.
+ const TestProperty& GetTestProperty(int i) const;
private:
friend class DefaultGlobalTestPartResultReporter;