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

Unified Diff: cc/scheduler/commit_earlyout_reason_unittest.cc

Issue 2493853002: cc/blimp: Proto Cleanup. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/scheduler/commit_earlyout_reason.cc ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/commit_earlyout_reason_unittest.cc
diff --git a/cc/scheduler/commit_earlyout_reason_unittest.cc b/cc/scheduler/commit_earlyout_reason_unittest.cc
deleted file mode 100644
index 1972a3bbebbb826a1c32fbf30619c0c78e1b6172..0000000000000000000000000000000000000000
--- a/cc/scheduler/commit_earlyout_reason_unittest.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/scheduler/commit_earlyout_reason.h"
-
-#include "cc/proto/commit_earlyout_reason.pb.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace cc {
-namespace {
-
-CommitEarlyOutReason SerializeAndDeserializeReason(
- CommitEarlyOutReason reason) {
- proto::CommitEarlyOutReason proto;
- CommitEarlyOutReasonToProtobuf(reason, &proto);
- return CommitEarlyOutReasonFromProtobuf(proto);
-}
-
-TEST(CommitEarlyOutReasonUnittest, SerializeCommitEarlyOutReason) {
- EXPECT_EQ(CommitEarlyOutReason::ABORTED_COMPOSITOR_FRAME_SINK_LOST,
- SerializeAndDeserializeReason(
- CommitEarlyOutReason::ABORTED_COMPOSITOR_FRAME_SINK_LOST));
-
- EXPECT_EQ(
- CommitEarlyOutReason::ABORTED_NOT_VISIBLE,
- SerializeAndDeserializeReason(CommitEarlyOutReason::ABORTED_NOT_VISIBLE));
-
- EXPECT_EQ(CommitEarlyOutReason::ABORTED_DEFERRED_COMMIT,
- SerializeAndDeserializeReason(
- CommitEarlyOutReason::ABORTED_DEFERRED_COMMIT));
-
- EXPECT_EQ(
- CommitEarlyOutReason::FINISHED_NO_UPDATES,
- SerializeAndDeserializeReason(CommitEarlyOutReason::FINISHED_NO_UPDATES));
-}
-
-} // namespace
-} // namespace cc
« no previous file with comments | « cc/scheduler/commit_earlyout_reason.cc ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698