| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 // Test of classes in the tracked_objects.h classes. |    5 // Test of classes in the tracked_objects.h classes. | 
|    6  |    6  | 
|    7 #include "base/tracked_objects.h" |    7 #include "base/tracked_objects.h" | 
|    8  |    8  | 
 |    9 #include <stddef.h> | 
 |   10  | 
|    9 #include "base/memory/scoped_ptr.h" |   11 #include "base/memory/scoped_ptr.h" | 
|   10 #include "base/process/process_handle.h" |   12 #include "base/process/process_handle.h" | 
|   11 #include "base/time/time.h" |   13 #include "base/time/time.h" | 
 |   14 #include "base/tracking_info.h" | 
|   12 #include "testing/gtest/include/gtest/gtest.h" |   15 #include "testing/gtest/include/gtest/gtest.h" | 
|   13  |   16  | 
|   14 const int kLineNumber = 1776; |   17 const int kLineNumber = 1776; | 
|   15 const char kFile[] = "FixedUnitTestFileName"; |   18 const char kFile[] = "FixedUnitTestFileName"; | 
|   16 const char kWorkerThreadName[] = "WorkerThread-1"; |   19 const char kWorkerThreadName[] = "WorkerThread-1"; | 
|   17 const char kMainThreadName[] = "SomeMainThreadName"; |   20 const char kMainThreadName[] = "SomeMainThreadName"; | 
|   18 const char kStillAlive[] = "Still_Alive"; |   21 const char kStillAlive[] = "Still_Alive"; | 
|   19  |   22  | 
|   20 namespace tracked_objects { |   23 namespace tracked_objects { | 
|   21  |   24  | 
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  572   EXPECT_EQ(0, process_data.tasks[1].death_data.run_duration_sample); |  575   EXPECT_EQ(0, process_data.tasks[1].death_data.run_duration_sample); | 
|  573   EXPECT_EQ(0, process_data.tasks[1].death_data.queue_duration_sum); |  576   EXPECT_EQ(0, process_data.tasks[1].death_data.queue_duration_sum); | 
|  574   EXPECT_EQ(0, process_data.tasks[1].death_data.queue_duration_max); |  577   EXPECT_EQ(0, process_data.tasks[1].death_data.queue_duration_max); | 
|  575   EXPECT_EQ(0, process_data.tasks[1].death_data.queue_duration_sample); |  578   EXPECT_EQ(0, process_data.tasks[1].death_data.queue_duration_sample); | 
|  576   EXPECT_EQ(kStillAlive, process_data.tasks[1].death_thread_name); |  579   EXPECT_EQ(kStillAlive, process_data.tasks[1].death_thread_name); | 
|  577   EXPECT_EQ(0u, process_data.descendants.size()); |  580   EXPECT_EQ(0u, process_data.descendants.size()); | 
|  578   EXPECT_EQ(base::GetCurrentProcId(), process_data.process_id); |  581   EXPECT_EQ(base::GetCurrentProcId(), process_data.process_id); | 
|  579 } |  582 } | 
|  580  |  583  | 
|  581 }  // namespace tracked_objects |  584 }  // namespace tracked_objects | 
| OLD | NEW |