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

Side by Side Diff: ui/android/resources/resource_manager_impl_unittest.cc

Issue 2270323004: Add BlimpView to a Chrome tab when Blimp is enabled. (Closed)
Patch Set: addressed nit, renamed CreateForTesting and piped through touch handling Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "cc/animation/animation_host.h" 8 #include "cc/animation/animation_host.h"
9 #include "cc/resources/ui_resource_bitmap.h" 9 #include "cc/resources/ui_resource_bitmap.h"
10 #include "cc/test/stub_layer_tree_host_client.h" 10 #include "cc/test/stub_layer_tree_host_client.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 private: 83 private:
84 DISALLOW_COPY_AND_ASSIGN(MockLayerTreeHost); 84 DISALLOW_COPY_AND_ASSIGN(MockLayerTreeHost);
85 }; 85 };
86 86
87 } // namespace 87 } // namespace
88 88
89 class ResourceManagerTest : public testing::Test { 89 class ResourceManagerTest : public testing::Test {
90 public: 90 public:
91 ResourceManagerTest() 91 ResourceManagerTest()
92 : window_android_(WindowAndroid::createForTesting()), 92 : window_android_(WindowAndroid::CreateForTesting()),
93 resource_manager_(window_android_) { 93 resource_manager_(window_android_) {
94 cc::LayerTreeHost::InitParams params; 94 cc::LayerTreeHost::InitParams params;
95 cc::LayerTreeSettings settings; 95 cc::LayerTreeSettings settings;
96 params.client = &stub_client_; 96 params.client = &stub_client_;
97 params.settings = &settings; 97 params.settings = &settings;
98 params.task_graph_runner = &task_graph_runner_; 98 params.task_graph_runner = &task_graph_runner_;
99 params.animation_host = 99 params.animation_host =
100 cc::AnimationHost::CreateForTesting(cc::ThreadInstance::MAIN); 100 cc::AnimationHost::CreateForTesting(cc::ThreadInstance::MAIN);
101 host_.reset(new MockLayerTreeHost(&params, 101 host_.reset(new MockLayerTreeHost(&params,
102 cc::CompositorMode::SINGLE_THREADED)); 102 cc::CompositorMode::SINGLE_THREADED));
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 EXPECT_EQ(kNumFrames, actual_rects.size()); 182 EXPECT_EQ(kNumFrames, actual_rects.size());
183 for (size_t i = 0; i < kNumFrames; i++) { 183 for (size_t i = 0; i < kNumFrames; i++) {
184 EXPECT_EQ(expected_rects[i].size(), actual_rects[i].size()); 184 EXPECT_EQ(expected_rects[i].size(), actual_rects[i].size());
185 for (size_t j = 0; j < actual_rects[i].size(); j++) { 185 for (size_t j = 0; j < actual_rects[i].size(); j++) {
186 EXPECT_EQ(expected_rects[i][j], actual_rects[i][j]); 186 EXPECT_EQ(expected_rects[i][j], actual_rects[i][j]);
187 } 187 }
188 } 188 }
189 } 189 }
190 190
191 } // namespace ui 191 } // namespace ui
OLDNEW
« no previous file with comments | « ui/android/java/src/org/chromium/ui/base/WindowAndroid.java ('k') | ui/android/window_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698