summaryrefslogtreecommitdiffstats
path: root/base/stats_table_unittest.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 19:40:11 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 19:40:11 +0000
commit20e14913cdb627bc6d6751dedc18fe23c3893671 (patch)
tree81654b4186f92345c8435bf10579aca31b14543a /base/stats_table_unittest.cc
parent2045b41427fd10137d9c97dbc3d2ab536fd45480 (diff)
downloadchromium_src-20e14913cdb627bc6d6751dedc18fe23c3893671.zip
chromium_src-20e14913cdb627bc6d6751dedc18fe23c3893671.tar.gz
chromium_src-20e14913cdb627bc6d6751dedc18fe23c3893671.tar.bz2
Re-land part of r55416, minus actually moving the test_suite.h contents to a .cc file.
Cleanup in base. This moves the implementation (and a bunch of header file dependencies) from the multiprocess test and the test_suite headers to .cc files. Moves multiprocess_test to the test directory, and all of this stuff to the existing base_test_support project. I also used the base namespace. Previously other projects included this functionality just by #include because it was all inline, so I had to add dependencies on base_test_support in a few places. Moves and renames the command line switch this was using to base_switches. Move the base switch for process type to chrome switches. TEST=none BUG=none Review URL: http://codereview.chromium.org/3026055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/stats_table_unittest.cc')
-rw-r--r--base/stats_table_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/stats_table_unittest.cc b/base/stats_table_unittest.cc
index 848ef97..db8057c 100644
--- a/base/stats_table_unittest.cc
+++ b/base/stats_table_unittest.cc
@@ -7,12 +7,14 @@
#include <windows.h>
#endif
-#include "base/multiprocess_test.h"
#include "base/platform_thread.h"
#include "base/simple_thread.h"
#include "base/shared_memory.h"
#include "base/stats_table.h"
#include "base/stats_counters.h"
+#include "base/string_piece.h"
+#include "base/string_util.h"
+#include "base/test/multiprocess_test.h"
#include "base/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/multiprocess_func_list.h"
@@ -204,7 +206,7 @@ TEST_F(StatsTableTest, MultipleProcesses) {
// Spawn the processes.
for (int16 index = 0; index < kMaxProcs; index++) {
- procs[index] = this->SpawnChild("StatsTableMultipleProcessMain");
+ procs[index] = this->SpawnChild("StatsTableMultipleProcessMain", false);
EXPECT_NE(base::kNullProcessHandle, procs[index]);
}