summaryrefslogtreecommitdiff
path: root/include/gtest/gtest-test-part.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-07-13 19:25:02 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-07-13 19:25:02 +0000
commita8a582fb926a678d1c4303384bd4dc872f746de8 (patch)
tree982a302a1017c97c3cf11da4341492509a08dc2f /include/gtest/gtest-test-part.h
parent449f84de9b0c48289e20f63c6d08a39bcee2021b (diff)
downloadgtest-a8a582fb926a678d1c4303384bd4dc872f746de8.tar.gz
gtest-a8a582fb926a678d1c4303384bd4dc872f746de8.tar.bz2
gtest-a8a582fb926a678d1c4303384bd4dc872f746de8.tar.xz
Adds color support for TERM=linux (by Alexander Demin); renames List to Vector (by Zhanyong Wan); implements Vector::Erase (by Vlad Losev).
git-svn-id: http://googletest.googlecode.com/svn/trunk@281 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'include/gtest/gtest-test-part.h')
-rw-r--r--include/gtest/gtest-test-part.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/gtest/gtest-test-part.h b/include/gtest/gtest-test-part.h
index 1a281af..d5b2713 100644
--- a/include/gtest/gtest-test-part.h
+++ b/include/gtest/gtest-test-part.h
@@ -136,9 +136,8 @@ class TestPartResultArray {
// Returns the number of TestPartResult objects in the array.
int size() const;
private:
- // Internally we use a list to simulate the array. Yes, this means
- // that random access is O(N) in time, but it's OK for its purpose.
- internal::List<TestPartResult>* const list_;
+ // Internally we use a Vector to implement the array.
+ internal::Vector<TestPartResult>* const array_;
GTEST_DISALLOW_COPY_AND_ASSIGN_(TestPartResultArray);
};