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

Side by Side Diff: cc/scheduler/scheduler_unittest.cc

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/scheduler/scheduler.h" 5 #include "cc/scheduler/scheduler.h"
6 6
7 #include <vector>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "cc/test/scheduler_test_common.h" 10 #include "cc/test/scheduler_test_common.h"
9 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
10 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
11 13
12 namespace cc { 14 namespace cc {
13 namespace { 15 namespace {
14 16
15 class FakeSchedulerClient : public SchedulerClient { 17 class FakeSchedulerClient : public SchedulerClient {
16 public: 18 public:
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 scheduler->DidLoseOutputSurface(); 542 scheduler->DidLoseOutputSurface();
541 // Verifying that it's 1 so that we know that it's reset on recreate. 543 // Verifying that it's 1 so that we know that it's reset on recreate.
542 EXPECT_EQ(1, controller_ptr->NumFramesPending()); 544 EXPECT_EQ(1, controller_ptr->NumFramesPending());
543 545
544 scheduler->DidRecreateOutputSurface(); 546 scheduler->DidRecreateOutputSurface();
545 EXPECT_EQ(0, controller_ptr->NumFramesPending()); 547 EXPECT_EQ(0, controller_ptr->NumFramesPending());
546 } 548 }
547 549
548 } // namespace 550 } // namespace
549 } // namespace cc 551 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_state_machine_unittest.cc ('k') | cc/scheduler/texture_uploader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698