| 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/trace_event/memory_dump_provider.h" | 7 #include "base/trace_event/memory_dump_provider.h" |
| 8 #include "base/trace_event/process_memory_dump.h" | 8 #include "base/trace_event/process_memory_dump.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 EXPECT_CALL(mdp2, DumpInto(_)).Times(1).WillRepeatedly(Return(true)); | 141 EXPECT_CALL(mdp2, DumpInto(_)).Times(1).WillRepeatedly(Return(true)); |
| 142 mdm_->RequestDumpPoint(DumpPointType::EXPLICITLY_TRIGGERED); | 142 mdm_->RequestDumpPoint(DumpPointType::EXPLICITLY_TRIGGERED); |
| 143 | 143 |
| 144 EXPECT_CALL(mdp1, DumpInto(_)).Times(0); | 144 EXPECT_CALL(mdp1, DumpInto(_)).Times(0); |
| 145 EXPECT_CALL(mdp2, DumpInto(_)).Times(1).WillRepeatedly(Return(false)); | 145 EXPECT_CALL(mdp2, DumpInto(_)).Times(1).WillRepeatedly(Return(false)); |
| 146 mdm_->RequestDumpPoint(DumpPointType::EXPLICITLY_TRIGGERED); | 146 mdm_->RequestDumpPoint(DumpPointType::EXPLICITLY_TRIGGERED); |
| 147 | 147 |
| 148 DisableTracing(); | 148 DisableTracing(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace trace_Event | 151 } // namespace trace_event |
| 152 } // namespace base | 152 } // namespace base |
| OLD | NEW |