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

Side by Side Diff: skia/ext/skia_memory_dump_provider_unittest.cc

Issue 1337943003: [tracing] Non-functional refactor of memory dump arg names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows test Created 5 years, 3 months 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
« no previous file with comments | « gin/v8_isolate_memory_dump_provider_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_dump.h" 5 #include "base/trace_event/process_memory_dump.h"
6 #include "skia/ext/skia_memory_dump_provider.h" 6 #include "skia/ext/skia_memory_dump_provider.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace skia { 9 namespace skia {
10 10
11 // Tests if the skia dump provider dumps without crashing. 11 // Tests if the skia dump provider dumps without crashing.
12 TEST(SkiaMemoryDumpProviderTest, OnMemoryDump) { 12 TEST(SkiaMemoryDumpProviderTest, OnMemoryDump) {
13 scoped_ptr<base::trace_event::ProcessMemoryDump> process_memory_dump( 13 scoped_ptr<base::trace_event::ProcessMemoryDump> process_memory_dump(
14 new base::trace_event::ProcessMemoryDump(nullptr)); 14 new base::trace_event::ProcessMemoryDump(nullptr));
15 base::trace_event::MemoryDumpArgs dump_args = { 15 base::trace_event::MemoryDumpArgs dump_args = {
16 base::trace_event::MemoryDumpArgs::LevelOfDetail::HIGH}; 16 base::trace_event::MemoryDumpLevelOfDetail::DETAILED};
17 SkiaMemoryDumpProvider::GetInstance()->OnMemoryDump( 17 SkiaMemoryDumpProvider::GetInstance()->OnMemoryDump(
18 dump_args, process_memory_dump.get()); 18 dump_args, process_memory_dump.get());
19 19
20 ASSERT_TRUE(process_memory_dump->GetAllocatorDump("skia/sk_glyph_cache")); 20 ASSERT_TRUE(process_memory_dump->GetAllocatorDump("skia/sk_glyph_cache"));
21 } 21 }
22 22
23 } // namespace skia 23 } // namespace skia
OLDNEW
« no previous file with comments | « gin/v8_isolate_memory_dump_provider_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698