Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1109)

Unified Diff: Source/platform/PODFreeListArenaTest.cpp

Issue 858663002: Fix template angle bracket syntax in platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/PODFreeListArena.h ('k') | Source/platform/PODIntervalTree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PODFreeListArenaTest.cpp
diff --git a/Source/platform/PODFreeListArenaTest.cpp b/Source/platform/PODFreeListArenaTest.cpp
index 77b277274293ea7febba8fa189fc0eba6d56c6ea..86800d185cd70b5119d29634750ef6f5dfd1f304 100644
--- a/Source/platform/PODFreeListArenaTest.cpp
+++ b/Source/platform/PODFreeListArenaTest.cpp
@@ -61,7 +61,7 @@ struct TestClass2 {
class PODFreeListArenaTest : public testing::Test {
protected:
- int getFreeListSize(const PassRefPtr<PODFreeListArena<TestClass1> > arena) const
+ int getFreeListSize(const PassRefPtr<PODFreeListArena<TestClass1>> arena) const
{
return arena->getFreeListSizeForTesting();
}
@@ -72,7 +72,7 @@ protected:
TEST_F(PODFreeListArenaTest, CanAllocateFromMoreThanOneRegion)
{
RefPtr<TrackedAllocator> allocator = TrackedAllocator::create();
- RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create(allocator);
+ RefPtr<PODFreeListArena<TestClass1>> arena = PODFreeListArena<TestClass1>::create(allocator);
int numIterations = 10 * PODArena::DefaultChunkSize / sizeof(TestClass1);
for (int i = 0; i < numIterations; ++i)
arena->allocateObject();
@@ -84,7 +84,7 @@ TEST_F(PODFreeListArenaTest, FreesAllAllocatedRegions)
{
RefPtr<TrackedAllocator> allocator = TrackedAllocator::create();
{
- RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create(allocator);
+ RefPtr<PODFreeListArena<TestClass1>> arena = PODFreeListArena<TestClass1>::create(allocator);
for (int i = 0; i < 3; i++)
arena->allocateObject();
EXPECT_GT(allocator->numRegions(), 0);
@@ -95,7 +95,7 @@ TEST_F(PODFreeListArenaTest, FreesAllAllocatedRegions)
// Make sure the arena runs constructors of the objects allocated within.
TEST_F(PODFreeListArenaTest, RunsConstructorsOnNewObjects)
{
- RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create();
+ RefPtr<PODFreeListArena<TestClass1>> arena = PODFreeListArena<TestClass1>::create();
for (int i = 0; i < 10000; i++) {
TestClass1* tc1 = arena->allocateObject();
EXPECT_EQ(0, tc1->x);
@@ -109,7 +109,7 @@ TEST_F(PODFreeListArenaTest, RunsConstructorsOnNewObjects)
TEST_F(PODFreeListArenaTest, RunsConstructorsOnReusedObjects)
{
std::set<TestClass1*> objects;
- RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create();
+ RefPtr<PODFreeListArena<TestClass1>> arena = PODFreeListArena<TestClass1>::create();
for (int i = 0; i < 100; i++) {
TestClass1* tc1 = arena->allocateObject();
tc1->x = 100;
@@ -138,7 +138,7 @@ TEST_F(PODFreeListArenaTest, RunsConstructorsOnReusedObjects)
TEST_F(PODFreeListArenaTest, AddsFreedObjectsToFreedList)
{
std::vector<TestClass1*> objects;
- RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create();
+ RefPtr<PODFreeListArena<TestClass1>> arena = PODFreeListArena<TestClass1>::create();
for (int i = 0; i < 100; i++) {
objects.push_back(arena->allocateObject());
}
@@ -152,7 +152,7 @@ TEST_F(PODFreeListArenaTest, AddsFreedObjectsToFreedList)
TEST_F(PODFreeListArenaTest, ReusesPreviouslyFreedObjects)
{
std::set<TestClass2*> objects;
- RefPtr<PODFreeListArena<TestClass2> > arena = PODFreeListArena<TestClass2>::create();
+ RefPtr<PODFreeListArena<TestClass2>> arena = PODFreeListArena<TestClass2>::create();
for (int i = 0; i < 100; i++) {
objects.insert(arena->allocateObject());
}
« no previous file with comments | « Source/platform/PODFreeListArena.h ('k') | Source/platform/PODIntervalTree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698