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

Side by Side Diff: third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp

Issue 2795923002: Rewrite references to "wtf/" to "platform/wtf/" in platform/heap. (Closed)
Patch Set: Same as PS1; PS1 lacks some files for some reason. Created 3 years, 8 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
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 "platform/heap/BlinkGCMemoryDumpProvider.h" 5 #include "platform/heap/BlinkGCMemoryDumpProvider.h"
6 6
7 #include "base/trace_event/process_memory_dump.h" 7 #include "base/trace_event/process_memory_dump.h"
8 #include "platform/wtf/Threading.h"
8 #include "public/platform/Platform.h" 9 #include "public/platform/Platform.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 #include "wtf/Threading.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 TEST(BlinkGCDumpProviderTest, MemoryDump) { 14 TEST(BlinkGCDumpProviderTest, MemoryDump) {
15 base::trace_event::MemoryDumpArgs args = { 15 base::trace_event::MemoryDumpArgs args = {
16 base::trace_event::MemoryDumpLevelOfDetail::DETAILED}; 16 base::trace_event::MemoryDumpLevelOfDetail::DETAILED};
17 std::unique_ptr<base::trace_event::ProcessMemoryDump> dump( 17 std::unique_ptr<base::trace_event::ProcessMemoryDump> dump(
18 new base::trace_event::ProcessMemoryDump(nullptr, args)); 18 new base::trace_event::ProcessMemoryDump(nullptr, args));
19 BlinkGCMemoryDumpProvider::instance()->OnMemoryDump(args, dump.get()); 19 BlinkGCMemoryDumpProvider::instance()->OnMemoryDump(args, dump.get());
20 DCHECK(dump->GetAllocatorDump("blink_gc")); 20 DCHECK(dump->GetAllocatorDump("blink_gc"));
21 DCHECK(dump->GetAllocatorDump("blink_gc/allocated_objects")); 21 DCHECK(dump->GetAllocatorDump("blink_gc/allocated_objects"));
22 } 22 }
23 23
24 } // namespace blink 24 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698