diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-17 23:05:28 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-17 23:05:28 +0000 |
commit | f16339329dd06c7bc6fa409af73907253efad8dc (patch) | |
tree | 8303b6a935379ac9a68379f5fd896a6e84d7e5ea /base/linked_ptr_unittest.cc | |
parent | 681d27566707595006c468b17c27f8341d176b45 (diff) | |
download | chromium_src-f16339329dd06c7bc6fa409af73907253efad8dc.zip chromium_src-f16339329dd06c7bc6fa409af73907253efad8dc.tar.gz chromium_src-f16339329dd06c7bc6fa409af73907253efad8dc.tar.bz2 |
Header cleanup in base.
This makes uses of StringPrintf and friends use the base namespace and include
stringprintf.h explicitly. This also removes a bunch of unnecessary string_util
includes (which exposed a few other errors like people forgetting to include
<vector>.
TEST=it compiles
BUG=none
Review URL: http://codereview.chromium.org/3119022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/linked_ptr_unittest.cc')
-rw-r--r-- | base/linked_ptr_unittest.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/base/linked_ptr_unittest.cc b/base/linked_ptr_unittest.cc index f0b8989..e65b687 100644 --- a/base/linked_ptr_unittest.cc +++ b/base/linked_ptr_unittest.cc @@ -1,12 +1,11 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "base/linked_ptr.h" - -#include "base/string_util.h" +#include "base/stringprintf.h" #include "testing/gtest/include/gtest/gtest.h" namespace { @@ -17,17 +16,17 @@ std::string history; // Class which tracks allocation/deallocation struct A { - A(): mynum(num++) { history += StringPrintf("A%d ctor\n", mynum); } - virtual ~A() { history += StringPrintf("A%d dtor\n", mynum); } - virtual void Use() { history += StringPrintf("A%d use\n", mynum); } + A(): mynum(num++) { history += base::StringPrintf("A%d ctor\n", mynum); } + virtual ~A() { history += base::StringPrintf("A%d dtor\n", mynum); } + virtual void Use() { history += base::StringPrintf("A%d use\n", mynum); } int mynum; }; // Subclass struct B: public A { - B() { history += StringPrintf("B%d ctor\n", mynum); } - ~B() { history += StringPrintf("B%d dtor\n", mynum); } - virtual void Use() { history += StringPrintf("B%d use\n", mynum); } + B() { history += base::StringPrintf("B%d ctor\n", mynum); } + ~B() { history += base::StringPrintf("B%d dtor\n", mynum); } + virtual void Use() { history += base::StringPrintf("B%d use\n", mynum); } }; } // namespace |