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

Unified Diff: cc/debug/layer_tree_debug_state_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/debug/layer_tree_debug_state.cc ('k') | cc/layers/heads_up_display_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/layer_tree_debug_state_unittest.cc
diff --git a/cc/debug/layer_tree_debug_state_unittest.cc b/cc/debug/layer_tree_debug_state_unittest.cc
deleted file mode 100644
index b66e44ec206f051b77bff903080e21366edca42b..0000000000000000000000000000000000000000
--- a/cc/debug/layer_tree_debug_state_unittest.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2015 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/debug/layer_tree_debug_state.h"
-
-#include "cc/proto/layer_tree_debug_state.pb.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace cc {
-namespace {
-
-void VerifySerializeAndDeserializeProto(const LayerTreeDebugState& state1) {
- proto::LayerTreeDebugState proto;
- state1.ToProtobuf(&proto);
- LayerTreeDebugState state2;
- state2.FromProtobuf(proto);
- EXPECT_TRUE(LayerTreeDebugState::Equal(state1, state2));
-}
-
-TEST(LayerTreeDebugStateTest, AllFieldsTrue) {
- LayerTreeDebugState state;
- state.show_fps_counter = true;
- state.show_debug_borders = true;
- state.show_paint_rects = true;
- state.show_property_changed_rects = true;
- state.show_surface_damage_rects = true;
- state.show_screen_space_rects = true;
- state.show_touch_event_handler_rects = true;
- state.show_wheel_event_handler_rects = true;
- state.show_scroll_event_handler_rects = true;
- state.show_non_fast_scrollable_rects = true;
- state.show_layer_animation_bounds_rects = true;
- state.slow_down_raster_scale_factor = 1;
- state.rasterize_only_visible_content = true;
- state.show_picture_borders = true;
- state.SetRecordRenderingStats(true);
- VerifySerializeAndDeserializeProto(state);
-}
-
-TEST(LayerTreeDebugStateTest, ArbitraryFieldValues) {
- LayerTreeDebugState state;
- state.show_fps_counter = true;
- state.show_debug_borders = true;
- state.show_paint_rects = false;
- state.show_property_changed_rects = true;
- state.show_surface_damage_rects = false;
- state.show_screen_space_rects = false;
- state.show_touch_event_handler_rects = true;
- state.show_wheel_event_handler_rects = true;
- state.show_scroll_event_handler_rects = false;
- state.show_non_fast_scrollable_rects = true;
- state.show_layer_animation_bounds_rects = true;
- state.slow_down_raster_scale_factor = 42;
- state.rasterize_only_visible_content = false;
- state.show_picture_borders = false;
- state.SetRecordRenderingStats(true);
- VerifySerializeAndDeserializeProto(state);
-}
-
-} // namespace
-} // namespace cc
« no previous file with comments | « cc/debug/layer_tree_debug_state.cc ('k') | cc/layers/heads_up_display_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698