X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fpublic%2Ftest%2Fmock_render_process_host.cc;h=7b30a6f985e275be644f3dccc0f1f0d5961a89ad;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=a59ce5fb3730f522e9122a9f2d71bbb1fef5bec0;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/public/test/mock_render_process_host.cc b/src/content/public/test/mock_render_process_host.cc index a59ce5f..7b30a6f 100644 --- a/src/content/public/test/mock_render_process_host.cc +++ b/src/content/public/test/mock_render_process_host.cc @@ -6,6 +6,7 @@ #include "base/lazy_instance.h" #include "base/message_loop/message_loop.h" +#include "base/process/process_handle.h" #include "base/time/time.h" #include "content/browser/child_process_security_policy_impl.h" #include "content/browser/renderer_host/render_process_host_impl.h" @@ -124,7 +125,7 @@ base::ProcessHandle MockRenderProcessHost::GetHandle() const { // function. if (process_handle) return *process_handle; - return base::Process::Current().handle(); + return base::GetCurrentProcessHandle(); } bool MockRenderProcessHost::Send(IPC::Message* msg) { @@ -222,6 +223,12 @@ ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { return NULL; } +const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() + const { + static base::TimeTicks dummy_time = base::TimeTicks::Now(); + return dummy_time; +} + void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { RenderProcessHostImpl::FilterURL(this, empty_allowed, url); }