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

Unified Diff: content/browser/gpu/gpu_ipc_browsertests.cc

Issue 2723013004: gpu: Replace more chrome ipc with mojom API. (Closed)
Patch Set: tot merge Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/frame_host/debug_urls.cc ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_ipc_browsertests.cc
diff --git a/content/browser/gpu/gpu_ipc_browsertests.cc b/content/browser/gpu/gpu_ipc_browsertests.cc
index 367ed032f9ef30f415d1891a739e50a2ac24874a..458e847d7a713c267ccd00e4f189f45cdcc67694 100644
--- a/content/browser/gpu/gpu_ipc_browsertests.cc
+++ b/content/browser/gpu/gpu_ipc_browsertests.cc
@@ -8,10 +8,11 @@
#include "build/build_config.h"
#include "content/browser/compositor/image_transport_factory.h"
#include "content/browser/gpu/browser_gpu_channel_host_factory.h"
-#include "content/browser/gpu/gpu_process_host_ui_shim.h"
+#include "content/browser/gpu/gpu_process_host.h"
#include "content/public/browser/gpu_data_manager.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/content_browser_test.h"
+#include "services/ui/gpu/interfaces/gpu_service.mojom.h"
#include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPaint.h"
@@ -283,10 +284,9 @@ IN_PROC_BROWSER_TEST_F(BrowserGpuChannelHostFactoryTest,
base::Bind(&BrowserGpuChannelHostFactoryTest::OnContextLost,
base::Unretained(this), run_loop.QuitClosure(), &counter));
EXPECT_TRUE(provider->BindToCurrentThread());
- GpuProcessHostUIShim* shim =
- GpuProcessHostUIShim::FromID(GetFactory()->GpuProcessHostId());
- EXPECT_TRUE(shim != NULL);
- shim->SimulateCrash();
+ GpuProcessHost::CallOnIO(
+ GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, false /* force_create */,
+ base::Bind([](GpuProcessHost* host) { host->gpu_service()->Crash(); }));
run_loop.Run();
EXPECT_EQ(1, counter);
« no previous file with comments | « content/browser/frame_host/debug_urls.cc ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698