| Index: base/trace_event/memory_dump_manager_unittest.cc
|
| diff --git a/base/trace_event/memory_dump_manager_unittest.cc b/base/trace_event/memory_dump_manager_unittest.cc
|
| index 2b49228395b29d6c776489ae36b5c4734e9f55a4..0a5f39d3b12a2901ce1a0b39b7f9d59f4287f8f8 100644
|
| --- a/base/trace_event/memory_dump_manager_unittest.cc
|
| +++ b/base/trace_event/memory_dump_manager_unittest.cc
|
| @@ -1149,6 +1149,17 @@ TEST_F(MemoryDumpManagerTest, TestBackgroundTracingSetup) {
|
|
|
| EnableTracingWithTraceConfig(
|
| TraceConfigMemoryTestUtil::GetTraceConfig_BackgroundTrigger());
|
| +
|
| + // Only background mode dumps should be allowed with the trace config.
|
| + last_callback_success_ = false;
|
| + RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
|
| + MemoryDumpLevelOfDetail::LIGHT);
|
| + EXPECT_FALSE(last_callback_success_);
|
| + last_callback_success_ = false;
|
| + RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
|
| + MemoryDumpLevelOfDetail::DETAILED);
|
| + EXPECT_FALSE(last_callback_success_);
|
| +
|
| ASSERT_TRUE(IsPeriodicDumpingEnabled());
|
| run_loop.Run();
|
| DisableTracing();
|
|
|