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

Side by Side Diff: content/browser/renderer_host/offscreen_canvas_surface_manager_unittest.cc

Issue 2633053002: Remove the MessageLoop::DestructionObserver from mojo bindings. (Closed)
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_loop/message_loop.h"
5 #include "content/browser/compositor/test/no_transport_image_transport_factory.h " 6 #include "content/browser/compositor/test/no_transport_image_transport_factory.h "
6 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" 7 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h"
7 #include "content/browser/renderer_host/offscreen_canvas_surface_manager.h" 8 #include "content/browser/renderer_host/offscreen_canvas_surface_manager.h"
8 #include "content/public/test/test_browser_thread.h" 9 #include "content/public/test/test_browser_thread.h"
9 #include "mojo/public/cpp/bindings/binding.h" 10 #include "mojo/public/cpp/bindings/binding.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 12
12 #if defined(OS_ANDROID) 13 #if defined(OS_ANDROID)
13 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
14 #include "content/browser/renderer_host/context_provider_factory_impl_android.h" 15 #include "content/browser/renderer_host/context_provider_factory_impl_android.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 OffscreenCanvasSurfaceManager::GetInstance()->GetSurfaceInstance( 114 OffscreenCanvasSurfaceManager::GetInstance()->GetSurfaceInstance(
114 frame_sink_id_b)); 115 frame_sink_id_b));
115 116
116 surface_impl_a = nullptr; 117 surface_impl_a = nullptr;
117 EXPECT_EQ(1, this->getNumSurfaceImplInstances()); 118 EXPECT_EQ(1, this->getNumSurfaceImplInstances());
118 surface_impl_b = nullptr; 119 surface_impl_b = nullptr;
119 EXPECT_EQ(0, this->getNumSurfaceImplInstances()); 120 EXPECT_EQ(0, this->getNumSurfaceImplInstances());
120 } 121 }
121 122
122 } // namespace content 123 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698