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

Unified Diff: base/linked_ptr_unittest.cc

Issue 3119022: Header cleanup in base.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | « base/histogram_unittest.cc ('k') | base/logging.cc » ('j') | base/logging.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/linked_ptr_unittest.cc
===================================================================
--- base/linked_ptr_unittest.cc (revision 56291)
+++ base/linked_ptr_unittest.cc (working copy)
@@ -6,7 +6,6 @@
#include "base/linked_ptr.h"
-#include "base/string_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -17,17 +16,17 @@
// 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
« no previous file with comments | « base/histogram_unittest.cc ('k') | base/logging.cc » ('j') | base/logging.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698