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

Unified Diff: cc/debug/micro_benchmark_controller_unittest.cc

Issue 1411663002: cc: Split Proxy to eliminate unnecessary dependencies on the impl side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update perf tests. Created 5 years, 2 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 | « cc/debug/frame_timing_tracker_unittest.cc ('k') | cc/input/scroll_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/micro_benchmark_controller_unittest.cc
diff --git a/cc/debug/micro_benchmark_controller_unittest.cc b/cc/debug/micro_benchmark_controller_unittest.cc
index 61f34f4b77ea3000a4f44a5e143b805da9a37b4e..9c5b0a565b05ad922ee3350278a0ce94bc6d2482 100644
--- a/cc/debug/micro_benchmark_controller_unittest.cc
+++ b/cc/debug/micro_benchmark_controller_unittest.cc
@@ -7,6 +7,7 @@
#include "cc/debug/micro_benchmark.h"
#include "cc/debug/micro_benchmark_controller.h"
#include "cc/layers/layer.h"
+#include "cc/test/fake_impl_task_runner_provider.h"
#include "cc/test/fake_layer_tree_host.h"
#include "cc/test/fake_layer_tree_host_impl.h"
#include "cc/test/fake_proxy.h"
@@ -22,9 +23,11 @@ class MicroBenchmarkControllerTest : public testing::Test {
: layer_tree_host_client_(FakeLayerTreeHostClient::DIRECT_3D) {}
void SetUp() override {
- impl_proxy_ = make_scoped_ptr(new FakeImplProxy);
+ impl_task_runner_provider_ =
+ make_scoped_ptr(new FakeImplTaskRunnerProvider);
layer_tree_host_impl_ = make_scoped_ptr(new FakeLayerTreeHostImpl(
- impl_proxy_.get(), &shared_bitmap_manager_, &task_graph_runner_));
+ impl_task_runner_provider_.get(), &shared_bitmap_manager_,
+ &task_graph_runner_));
layer_tree_host_ = FakeLayerTreeHost::Create(&layer_tree_host_client_,
&task_graph_runner_);
@@ -35,7 +38,7 @@ class MicroBenchmarkControllerTest : public testing::Test {
void TearDown() override {
layer_tree_host_impl_ = nullptr;
layer_tree_host_ = nullptr;
- impl_proxy_ = nullptr;
+ impl_task_runner_provider_ = nullptr;
}
FakeLayerTreeHostClient layer_tree_host_client_;
@@ -43,7 +46,7 @@ class MicroBenchmarkControllerTest : public testing::Test {
TestSharedBitmapManager shared_bitmap_manager_;
scoped_ptr<FakeLayerTreeHost> layer_tree_host_;
scoped_ptr<FakeLayerTreeHostImpl> layer_tree_host_impl_;
- scoped_ptr<FakeImplProxy> impl_proxy_;
+ scoped_ptr<FakeImplTaskRunnerProvider> impl_task_runner_provider_;
};
void Noop(scoped_ptr<base::Value> value) {
« no previous file with comments | « cc/debug/frame_timing_tracker_unittest.cc ('k') | cc/input/scroll_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698