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

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: update WorkspaceManagerTest 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
« no previous file with comments | « ui/aura/test/test_windows.cc ('k') | ui/gfx/compositor/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_unittest.cc
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index 079ae0250ba0312624adc495f5a722f57c685826..4726010a038cb5f336c0260babe97603d210302f 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -182,11 +182,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);
@@ -214,7 +214,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);
@@ -342,11 +342,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);
@@ -369,13 +369,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);
« no previous file with comments | « ui/aura/test/test_windows.cc ('k') | ui/gfx/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698