| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "base/trace_event/memory_dump_manager.h" | 5 #include "base/trace_event/memory_dump_manager.h" |
| 6 | 6 |
| 7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/test/test_io_thread.h" | 13 #include "base/test/test_io_thread.h" |
| 14 #include "base/test/trace_event_analyzer.h" | 14 #include "base/test/trace_event_analyzer.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
| 16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "base/trace_event/memory_dump_provider.h" | 17 #include "base/trace_event/memory_dump_provider.h" |
| 18 #include "base/trace_event/process_memory_dump.h" | 18 #include "base/trace_event/process_memory_dump.h" |
| 19 #include "base/trace_event/trace_buffer.h" | 19 #include "base/trace_event/trace_buffer.h" |
| 20 #include "base/trace_event/trace_config_memory_test_util.h" | 20 #include "base/trace_event/trace_config_memory_test_util.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gtest/googlemock/include/gmock/gmock.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 23 | 23 |
| 24 using testing::_; | 24 using testing::_; |
| 25 using testing::AnyNumber; | 25 using testing::AnyNumber; |
| 26 using testing::AtMost; | 26 using testing::AtMost; |
| 27 using testing::Between; | 27 using testing::Between; |
| 28 using testing::Invoke; | 28 using testing::Invoke; |
| 29 using testing::Return; | 29 using testing::Return; |
| 30 | 30 |
| 31 namespace base { | 31 namespace base { |
| 32 namespace trace_event { | 32 namespace trace_event { |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 ASSERT_EQ(1u, trace_analyzer::CountMatches(events, Query::EventPidIs(123))); | 819 ASSERT_EQ(1u, trace_analyzer::CountMatches(events, Query::EventPidIs(123))); |
| 820 ASSERT_EQ(1u, trace_analyzer::CountMatches(events, Query::EventPidIs(456))); | 820 ASSERT_EQ(1u, trace_analyzer::CountMatches(events, Query::EventPidIs(456))); |
| 821 ASSERT_EQ(1u, trace_analyzer::CountMatches( | 821 ASSERT_EQ(1u, trace_analyzer::CountMatches( |
| 822 events, Query::EventPidIs(GetCurrentProcId()))); | 822 events, Query::EventPidIs(GetCurrentProcId()))); |
| 823 ASSERT_EQ(events[0]->id, events[1]->id); | 823 ASSERT_EQ(events[0]->id, events[1]->id); |
| 824 ASSERT_EQ(events[0]->id, events[2]->id); | 824 ASSERT_EQ(events[0]->id, events[2]->id); |
| 825 } | 825 } |
| 826 | 826 |
| 827 } // namespace trace_event | 827 } // namespace trace_event |
| 828 } // namespace base | 828 } // namespace base |
| OLD | NEW |