summaryrefslogtreecommitdiffstats
path: root/ipc/file_descriptor_set_posix_unittest.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-01 04:16:27 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-01 04:16:27 +0000
commitad8e04ac88be37d5ccb6c2cf61f52b224dca493c (patch)
tree9bcb878643bdd9e5af6749fff469b2552e569907 /ipc/file_descriptor_set_posix_unittest.cc
parent5af8043eb24ad60251d8a4e33192e3e6f59246a3 (diff)
downloadchromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.zip
chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.gz
chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.bz2
Convert implicit scoped_refptr constructor calls to explicit ones, part 1
This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/file_descriptor_set_posix_unittest.cc')
-rw-r--r--ipc/file_descriptor_set_posix_unittest.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/ipc/file_descriptor_set_posix_unittest.cc b/ipc/file_descriptor_set_posix_unittest.cc
index b6077d1..31b8bf4 100644
--- a/ipc/file_descriptor_set_posix_unittest.cc
+++ b/ipc/file_descriptor_set_posix_unittest.cc
@@ -36,7 +36,7 @@ bool VerifyClosed(int fd) {
static const int kFDBase = 50000;
TEST(FileDescriptorSet, BasicAdd) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
ASSERT_EQ(set->size(), 0u);
ASSERT_TRUE(set->empty());
@@ -50,7 +50,7 @@ TEST(FileDescriptorSet, BasicAdd) {
}
TEST(FileDescriptorSet, BasicAddAndClose) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
ASSERT_EQ(set->size(), 0u);
ASSERT_TRUE(set->empty());
@@ -64,7 +64,7 @@ TEST(FileDescriptorSet, BasicAddAndClose) {
ASSERT_TRUE(VerifyClosed(fd));
}
TEST(FileDescriptorSet, MaxSize) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
for (unsigned i = 0;
i < FileDescriptorSet::MAX_DESCRIPTORS_PER_MESSAGE; ++i) {
@@ -77,7 +77,7 @@ TEST(FileDescriptorSet, MaxSize) {
}
TEST(FileDescriptorSet, SetDescriptors) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
ASSERT_TRUE(set->empty());
set->SetDescriptors(NULL, 0);
@@ -95,7 +95,7 @@ TEST(FileDescriptorSet, SetDescriptors) {
}
TEST(FileDescriptorSet, GetDescriptors) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
set->GetDescriptors(NULL);
ASSERT_TRUE(set->Add(kFDBase));
@@ -109,7 +109,7 @@ TEST(FileDescriptorSet, GetDescriptors) {
}
TEST(FileDescriptorSet, WalkInOrder) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
ASSERT_TRUE(set->Add(kFDBase));
ASSERT_TRUE(set->Add(kFDBase + 1));
@@ -123,7 +123,7 @@ TEST(FileDescriptorSet, WalkInOrder) {
}
TEST(FileDescriptorSet, WalkWrongOrder) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
ASSERT_TRUE(set->Add(kFDBase));
ASSERT_TRUE(set->Add(kFDBase + 1));
@@ -136,7 +136,7 @@ TEST(FileDescriptorSet, WalkWrongOrder) {
}
TEST(FileDescriptorSet, WalkCycle) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
ASSERT_TRUE(set->Add(kFDBase));
ASSERT_TRUE(set->Add(kFDBase + 1));
@@ -156,7 +156,7 @@ TEST(FileDescriptorSet, WalkCycle) {
}
TEST(FileDescriptorSet, DontClose) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
const int fd = GetSafeFd();
ASSERT_TRUE(set->Add(fd));
@@ -166,7 +166,7 @@ TEST(FileDescriptorSet, DontClose) {
}
TEST(FileDescriptorSet, DoClose) {
- scoped_refptr<FileDescriptorSet> set = new FileDescriptorSet;
+ scoped_refptr<FileDescriptorSet> set(new FileDescriptorSet);
const int fd = GetSafeFd();
ASSERT_TRUE(set->AddAndAutoClose(fd));