| 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/process_memory_totals_dump_provider.h" | 5 #include "base/trace_event/process_memory_totals_dump_provider.h" |
| 6 | 6 |
| 7 #include "base/trace_event/process_memory_dump.h" | 7 #include "base/trace_event/process_memory_dump.h" |
| 8 #include "base/trace_event/process_memory_totals.h" | 8 #include "base/trace_event/process_memory_totals.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 const uint64 rss_before = pmd_before->process_totals()->resident_set_bytes(); | 33 const uint64 rss_before = pmd_before->process_totals()->resident_set_bytes(); |
| 34 const uint64 rss_after = pmd_after->process_totals()->resident_set_bytes(); | 34 const uint64 rss_after = pmd_after->process_totals()->resident_set_bytes(); |
| 35 | 35 |
| 36 EXPECT_NE(0U, rss_before); | 36 EXPECT_NE(0U, rss_before); |
| 37 EXPECT_NE(0U, rss_after); | 37 EXPECT_NE(0U, rss_after); |
| 38 | 38 |
| 39 EXPECT_EQ(rss_after - rss_before, kAllocSize); | 39 EXPECT_EQ(rss_after - rss_before, kAllocSize); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace trace_Event | 42 } // namespace trace_event |
| 43 } // namespace base | 43 } // namespace base |
| OLD | NEW |