Index: base/metrics/stats_table_unittest.cc |
diff --git a/base/metrics/stats_table_unittest.cc b/base/metrics/stats_table_unittest.cc |
index 45b0a4397bce6392ed5de10f651477470262b9d8..38a21cc31df9b5e3dcf5246ca18b8668827ea9f9 100644 |
--- a/base/metrics/stats_table_unittest.cc |
+++ b/base/metrics/stats_table_unittest.cc |
@@ -200,19 +200,19 @@ TEST_F(StatsTableTest, DISABLED_MultipleProcesses) { |
// Spin up a set of processes to go bang on the various counters. |
// After we join the processes, we'll make sure the counters |
// contain the values we expected. |
- ProcessHandle procs[kMaxProcs]; |
+ Process procs[kMaxProcs]; |
// Spawn the processes. |
for (int16 index = 0; index < kMaxProcs; index++) { |
procs[index] = SpawnChild("StatsTableMultipleProcessMain"); |
- EXPECT_NE(kNullProcessHandle, procs[index]); |
+ EXPECT_TRUE(procs[index].IsValid()); |
} |
// Wait for the processes to finish. |
for (int index = 0; index < kMaxProcs; index++) { |
- EXPECT_TRUE(WaitForSingleProcess( |
- procs[index], base::TimeDelta::FromMinutes(1))); |
- CloseProcessHandle(procs[index]); |
+ EXPECT_TRUE(WaitForSingleProcess(procs[index].Handle(), |
+ base::TimeDelta::FromMinutes(1))); |
+ procs[index].Close(); |
} |
StatsCounter zero_counter(kCounterZero); |