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

Unified Diff: ui/compositor/layer_owner_unittest.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/layer_owner_delegate.h ('k') | ui/compositor/layer_tree_owner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_owner_unittest.cc
diff --git a/ui/compositor/layer_owner_unittest.cc b/ui/compositor/layer_owner_unittest.cc
deleted file mode 100644
index 6390ecaf4633f026c409573114a6defb216f003e..0000000000000000000000000000000000000000
--- a/ui/compositor/layer_owner_unittest.cc
+++ /dev/null
@@ -1,33 +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 "ui/compositor/layer_owner.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/compositor/layer.h"
-#include "ui/compositor/layer_animator.h"
-#include "ui/compositor/scoped_layer_animation_settings.h"
-
-namespace ui {
-
-TEST(LayerOwnerTest, RecreateLayerHonorsTargetVisibilityAndOpacity) {
- LayerOwner owner;
- Layer* layer = new Layer;
- layer->SetVisible(true);
- layer->SetOpacity(1.0f);
-
- owner.SetLayer(layer);
-
- ScopedLayerAnimationSettings settings(layer->GetAnimator());
- layer->SetVisible(false);
- layer->SetOpacity(0.0f);
- EXPECT_TRUE(layer->visible());
- EXPECT_EQ(1.0f, layer->opacity());
-
- scoped_ptr<Layer> old_layer(owner.RecreateLayer());
- EXPECT_FALSE(owner.layer()->visible());
- EXPECT_EQ(0.0f, owner.layer()->opacity());
-}
-
-} // namespace ui
« no previous file with comments | « ui/compositor/layer_owner_delegate.h ('k') | ui/compositor/layer_tree_owner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698