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

Unified Diff: ash/screen_ash_unittest.cc

Issue 11795004: Continue threading context through unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « ash/root_window_controller_unittest.cc ('k') | ash/shell/toplevel_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/screen_ash_unittest.cc
diff --git a/ash/screen_ash_unittest.cc b/ash/screen_ash_unittest.cc
index 79e56270d6a31fd498be582856b84c51005189a2..23208778812678069a5423693480525197264355 100644
--- a/ash/screen_ash_unittest.cc
+++ b/ash/screen_ash_unittest.cc
@@ -25,11 +25,11 @@ TEST_F(ScreenAshTest, Bounds) {
Shell::GetPrimaryRootWindowController()->SetShelfAutoHideBehavior(
ash::SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
- views::Widget* primary =
- views::Widget::CreateWindowWithBounds(NULL, gfx::Rect(10, 10, 100, 100));
+ views::Widget* primary = views::Widget::CreateWindowWithContextAndBounds(
+ NULL, CurrentContext(), gfx::Rect(10, 10, 100, 100));
primary->Show();
- views::Widget* secondary =
- views::Widget::CreateWindowWithBounds(NULL, gfx::Rect(610, 10, 100, 100));
+ views::Widget* secondary = views::Widget::CreateWindowWithContextAndBounds(
+ NULL, CurrentContext(), gfx::Rect(610, 10, 100, 100));
secondary->Show();
// Maximized bounds
@@ -60,11 +60,11 @@ TEST_F(ScreenAshTest, Bounds) {
TEST_F(ScreenAshTest, ConvertRect) {
UpdateDisplay("600x600,500x500");
- views::Widget* primary =
- views::Widget::CreateWindowWithBounds(NULL, gfx::Rect(10, 10, 100, 100));
+ views::Widget* primary = views::Widget::CreateWindowWithContextAndBounds(
+ NULL, CurrentContext(), gfx::Rect(10, 10, 100, 100));
primary->Show();
- views::Widget* secondary =
- views::Widget::CreateWindowWithBounds(NULL, gfx::Rect(610, 10, 100, 100));
+ views::Widget* secondary = views::Widget::CreateWindowWithContextAndBounds(
+ NULL, CurrentContext(), gfx::Rect(610, 10, 100, 100));
secondary->Show();
EXPECT_EQ(
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shell/toplevel_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698