mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-27 07:44:34 +02:00
* Updated breakpad to latest version.
This commit is contained in:
@@ -69,6 +69,7 @@ typedef testing::Test WastefulVectorTest;
|
||||
TEST(WastefulVectorTest, Setup) {
|
||||
PageAllocator allocator_;
|
||||
wasteful_vector<int> v(&allocator_);
|
||||
ASSERT_TRUE(v.empty());
|
||||
ASSERT_EQ(v.size(), 0u);
|
||||
}
|
||||
|
||||
@@ -76,8 +77,12 @@ TEST(WastefulVectorTest, Simple) {
|
||||
PageAllocator allocator_;
|
||||
wasteful_vector<unsigned> v(&allocator_);
|
||||
|
||||
for (unsigned i = 0; i < 256; ++i)
|
||||
for (unsigned i = 0; i < 256; ++i) {
|
||||
v.push_back(i);
|
||||
ASSERT_EQ(i, v.back());
|
||||
ASSERT_EQ(&v.back(), &v[i]);
|
||||
}
|
||||
ASSERT_FALSE(v.empty());
|
||||
ASSERT_EQ(v.size(), 256u);
|
||||
for (unsigned i = 0; i < 256; ++i)
|
||||
ASSERT_EQ(v[i], i);
|
||||
|
Reference in New Issue
Block a user