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

Unified Diff: cc/output/begin_frame_args_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/output/begin_frame_args.cc ('k') | cc/output/managed_memory_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/begin_frame_args_unittest.cc
diff --git a/cc/output/begin_frame_args_unittest.cc b/cc/output/begin_frame_args_unittest.cc
index 60972017478403873b2fd6cb3915a64d3612f671..eb63cc769a115f15d513bbf1473aab7857d6bbb8 100644
--- a/cc/output/begin_frame_args_unittest.cc
+++ b/cc/output/begin_frame_args_unittest.cc
@@ -5,7 +5,6 @@
#include <string>
#include "cc/output/begin_frame_args.h"
-#include "cc/proto/begin_main_frame_and_commit_state.pb.h"
#include "cc/test/begin_frame_args_test.h"
#include "testing/gtest/include/gtest/gtest-spi.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -85,37 +84,6 @@ TEST(BeginFrameArgsTest, Create) {
EXPECT_EQ(BeginFrameArgs::NORMAL, args2.type) << args2;
}
-TEST(BeginFrameArgsSerializationTest, BeginFrameArgsType) {
- for (size_t i = 0;
- i < BeginFrameArgs::BeginFrameArgsType::BEGIN_FRAME_ARGS_TYPE_MAX; ++i) {
- BeginFrameArgs::BeginFrameArgsType type =
- static_cast<BeginFrameArgs::BeginFrameArgsType>(i);
- BeginFrameArgs args;
- args.type = type;
-
- proto::BeginFrameArgs proto;
- args.BeginFrameArgsTypeToProtobuf(&proto);
-
- BeginFrameArgs new_args;
- new_args.BeginFrameArgsTypeFromProtobuf(proto);
- EXPECT_EQ(args.type, new_args.type);
- }
-}
-
-TEST(BeginFrameArgsSerializationTest, BeginFrameArgs) {
- BeginFrameArgs args = BeginFrameArgs::Create(
- BEGINFRAME_FROM_HERE, base::TimeTicks::FromInternalValue(1),
- base::TimeTicks::FromInternalValue(2),
- base::TimeDelta::FromInternalValue(3), BeginFrameArgs::NORMAL);
- proto::BeginFrameArgs proto;
- args.ToProtobuf(&proto);
-
- BeginFrameArgs new_args;
- new_args.FromProtobuf(proto);
-
- EXPECT_EQ(args, new_args);
-}
-
#ifndef NDEBUG
TEST(BeginFrameArgsTest, Location) {
tracked_objects::Location expected_location = BEGINFRAME_FROM_HERE;
« no previous file with comments | « cc/output/begin_frame_args.cc ('k') | cc/output/managed_memory_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698