Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Side by Side Diff: base/trace_event/process_memory_maps_dump_provider_unittest.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_maps_dump_provider.h" 5 #include "base/trace_event/process_memory_maps_dump_provider.h"
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/trace_event/process_memory_dump.h" 8 #include "base/trace_event/process_memory_dump.h"
9 #include "base/trace_event/process_memory_maps.h" 9 #include "base/trace_event/process_memory_maps.h"
10 #include "base/trace_event/trace_event_argument.h" 10 #include "base/trace_event/trace_event_argument.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/googletest/include/gtest/gtest.h"
12 12
13 namespace base { 13 namespace base {
14 namespace trace_event { 14 namespace trace_event {
15 15
16 namespace { 16 namespace {
17 const char kTestSmaps1[] = 17 const char kTestSmaps1[] =
18 "00400000-004be000 r-xp 00000000 fc:01 1234 /file/1\n" 18 "00400000-004be000 r-xp 00000000 fc:01 1234 /file/1\n"
19 "Size: 760 kB\n" 19 "Size: 760 kB\n"
20 "Rss: 296 kB\n" 20 "Rss: 296 kB\n"
21 "Pss: 162 kB\n" 21 "Pss: 162 kB\n"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 EXPECT_EQ(32 * 1024UL, regions_2[0].byte_stats_proportional_resident); 179 EXPECT_EQ(32 * 1024UL, regions_2[0].byte_stats_proportional_resident);
180 EXPECT_EQ(16 * 1024UL, regions_2[0].byte_stats_shared_clean_resident); 180 EXPECT_EQ(16 * 1024UL, regions_2[0].byte_stats_shared_clean_resident);
181 EXPECT_EQ(12 * 1024UL, regions_2[0].byte_stats_shared_dirty_resident); 181 EXPECT_EQ(12 * 1024UL, regions_2[0].byte_stats_shared_dirty_resident);
182 EXPECT_EQ(8 * 1024UL, regions_2[0].byte_stats_private_clean_resident); 182 EXPECT_EQ(8 * 1024UL, regions_2[0].byte_stats_private_clean_resident);
183 EXPECT_EQ(4 * 1024UL, regions_2[0].byte_stats_private_dirty_resident); 183 EXPECT_EQ(4 * 1024UL, regions_2[0].byte_stats_private_dirty_resident);
184 EXPECT_EQ(0 * 1024UL, regions_2[0].byte_stats_swapped); 184 EXPECT_EQ(0 * 1024UL, regions_2[0].byte_stats_swapped);
185 } 185 }
186 186
187 } // namespace trace_event 187 } // namespace trace_event
188 } // namespace base 188 } // namespace base
OLDNEW
« no previous file with comments | « base/trace_event/process_memory_dump_unittest.cc ('k') | base/trace_event/process_memory_totals_dump_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698