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

Unified Diff: ui/aura/window_unittest.cc

Issue 9289036: aura: Add Layer::LAYER_SOLID_COLOR to compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes Created 8 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
Index: ui/aura/window_unittest.cc
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index a3a781d01ba5ae88a18b6417eb1968dde0b8b940..c6c3f445f5644bfcefe631f281df06c682c0b8d4 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -181,11 +181,11 @@ TEST_F(WindowTest, GetChildById) {
// and not containing NULL or parents.
TEST_F(WindowTest, Contains) {
Window parent(NULL);
- parent.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ parent.Init(ui::Layer::LAYER_NOT_DRAWN);
Window child1(NULL);
- child1.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ child1.Init(ui::Layer::LAYER_NOT_DRAWN);
Window child2(NULL);
- child2.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ child2.Init(ui::Layer::LAYER_NOT_DRAWN);
child1.SetParent(&parent);
child2.SetParent(&child1);
@@ -213,7 +213,7 @@ TEST_F(WindowTest, ConvertPointToWindow) {
TEST_F(WindowTest, HitTest) {
Window w1(new ColorTestWindowDelegate(SK_ColorWHITE));
w1.set_id(1);
- w1.Init(ui::Layer::LAYER_HAS_TEXTURE);
+ w1.Init(ui::Layer::LAYER_TEXTURED);
w1.SetBounds(gfx::Rect(10, 10, 50, 50));
w1.Show();
w1.SetParent(NULL);
@@ -341,11 +341,11 @@ TEST_F(WindowTest, OrphanedBeforeOnDestroyed) {
// Make sure StackChildAtTop moves both the window and layer to the front.
TEST_F(WindowTest, StackChildAtTop) {
Window parent(NULL);
- parent.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ parent.Init(ui::Layer::LAYER_NOT_DRAWN);
Window child1(NULL);
- child1.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ child1.Init(ui::Layer::LAYER_NOT_DRAWN);
Window child2(NULL);
- child2.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ child2.Init(ui::Layer::LAYER_NOT_DRAWN);
child1.SetParent(&parent);
child2.SetParent(&parent);
@@ -368,13 +368,13 @@ TEST_F(WindowTest, StackChildAtTop) {
// Various assertions for StackChildAbove.
TEST_F(WindowTest, StackChildAbove) {
Window parent(NULL);
- parent.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ parent.Init(ui::Layer::LAYER_NOT_DRAWN);
Window child1(NULL);
- child1.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ child1.Init(ui::Layer::LAYER_NOT_DRAWN);
Window child2(NULL);
- child2.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ child2.Init(ui::Layer::LAYER_NOT_DRAWN);
Window child3(NULL);
- child3.Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
+ child3.Init(ui::Layer::LAYER_NOT_DRAWN);
child1.SetParent(&parent);
child2.SetParent(&parent);

Powered by Google App Engine
This is Rietveld 408576698