Commit bceb8139 authored by Sajjad Mirza's avatar Sajjad Mirza Committed by Commit Bot

[code coverage] Add mock implementation of SetCoverageFile.

Without this implementation the class is accidentally abstract and
cannot be instantiated.

Bug: 1018949
Change-Id: I6bbe1bacd430182876c6d3765626d57f9a2f4880
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1885494
Commit-Queue: Roberto Carrillo <robertocn@chromium.org>
Reviewed-by: default avatarRoberto Carrillo <robertocn@chromium.org>
Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#710478}
parent fcafd36b
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <vector> #include <vector>
#include "base/clang_coverage_buildflags.h"
#include "base/mac/scoped_mach_port.h" #include "base/mac/scoped_mach_port.h"
#include "base/synchronization/waitable_event.h" #include "base/synchronization/waitable_event.h"
#include "base/task/post_task.h" #include "base/task/post_task.h"
...@@ -32,6 +33,9 @@ class MockChildProcess : public mojom::ChildProcess { ...@@ -32,6 +33,9 @@ class MockChildProcess : public mojom::ChildProcess {
MOCK_METHOD1(GetTaskPort, void(GetTaskPortCallback)); MOCK_METHOD1(GetTaskPort, void(GetTaskPortCallback));
#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) #if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
MOCK_METHOD1(SetIPCLoggingEnabled, void(bool)); MOCK_METHOD1(SetIPCLoggingEnabled, void(bool));
#endif
#if BUILDFLAG(CLANG_COVERAGE)
MOCK_METHOD1(SetCoverageFile, void(base::File));
#endif #endif
MOCK_METHOD1(GetBackgroundTracingAgentProvider, MOCK_METHOD1(GetBackgroundTracingAgentProvider,
void(mojo::PendingReceiver< void(mojo::PendingReceiver<
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment