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

Side by Side Diff: sql/process_memory_dump_provider_unittest.cc

Issue 1327063002: [tracing] Add sqlite memory statistics to tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/trace_event/process_memory_dump.h"
6 #include "sql/process_memory_dump_provider.h"
7 #include "sql/test/sql_test_base.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 namespace {
11 using SQLMemoryDumpProviderTest = sql::SQLTestBase;
12 }
13
14 TEST_F(SQLMemoryDumpProviderTest, OnMemoryDump) {
15 base::trace_event::ProcessMemoryDump pmd(nullptr);
16 base::trace_event::MemoryDumpArgs args = {
17 base::trace_event::MemoryDumpArgs::LevelOfDetail::HIGH};
18 ASSERT_TRUE(
19 sql::ProcessMemoryDumpProvider::GetInstance()->OnMemoryDump(args, &pmd));
20 ASSERT_TRUE(pmd.GetAllocatorDump("sqlite"));
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698