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

Side by Side Diff: content/browser/compositor/reflector_impl_unittest.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/browser/compositor/reflector_impl.h" 5 #include "content/browser/compositor/reflector_impl.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 26 matching lines...) Expand all
37 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, 37 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
38 base::OnceClosure task, 38 base::OnceClosure task,
39 base::TimeDelta delay) override { 39 base::TimeDelta delay) override {
40 return true; 40 return true;
41 } 41 }
42 bool PostDelayedTask(const tracked_objects::Location& from_here, 42 bool PostDelayedTask(const tracked_objects::Location& from_here,
43 base::OnceClosure task, 43 base::OnceClosure task,
44 base::TimeDelta delay) override { 44 base::TimeDelta delay) override {
45 return true; 45 return true;
46 } 46 }
47 bool RunsTasksOnCurrentThread() const override { return true; } 47 bool RunsTasksInCurrentSequence() const override { return true; }
48 48
49 protected: 49 protected:
50 ~FakeTaskRunner() override {} 50 ~FakeTaskRunner() override {}
51 }; 51 };
52 52
53 #if defined(USE_OZONE) 53 #if defined(USE_OZONE)
54 class TestOverlayCandidatesOzone : public ui::OverlayCandidatesOzone { 54 class TestOverlayCandidatesOzone : public ui::OverlayCandidatesOzone {
55 public: 55 public:
56 TestOverlayCandidatesOzone() {} 56 TestOverlayCandidatesOzone() {}
57 ~TestOverlayCandidatesOzone() override {} 57 ~TestOverlayCandidatesOzone() override {}
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 plane_2.plane_z_order = 1; 234 plane_2.plane_z_order = 1;
235 list.push_back(plane_1); 235 list.push_back(plane_1);
236 list.push_back(plane_2); 236 list.push_back(plane_2);
237 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); 237 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list);
238 EXPECT_FALSE(list[0].overlay_handled); 238 EXPECT_FALSE(list[0].overlay_handled);
239 } 239 }
240 #endif // defined(USE_OZONE) 240 #endif // defined(USE_OZONE)
241 241
242 } // namespace 242 } // namespace
243 } // namespace content 243 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698