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

Unified Diff: ash/desktop_background/desktop_background_controller_unittest.cc

Issue 2200893002: mash: Partially migrate ash/desktop_background to ash common types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mash browser test crash in GetMaxDisplaySizeInNative. Created 4 years, 4 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: ash/desktop_background/desktop_background_controller_unittest.cc
diff --git a/ash/desktop_background/desktop_background_controller_unittest.cc b/ash/desktop_background/desktop_background_controller_unittest.cc
index 76c259d365db59ce6ae88da1b6669e7922ba6f05..28fe7072a5fb91b130612c91a90b0cd12a3d8a15 100644
--- a/ash/desktop_background/desktop_background_controller_unittest.cc
+++ b/ash/desktop_background/desktop_background_controller_unittest.cc
@@ -7,7 +7,6 @@
#include <cmath>
#include <cstdlib>
-#include "ash/common/ash_switches.h"
#include "ash/common/shell_window_ids.h"
#include "ash/desktop_background/desktop_background_view.h"
#include "ash/desktop_background/desktop_background_widget_controller.h"
@@ -19,18 +18,13 @@
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/threading/sequenced_worker_pool.h"
-#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColor.h"
-#include "ui/aura/window_event_dispatcher.h"
#include "ui/compositor/scoped_animation_duration_scale_mode.h"
#include "ui/compositor/test/layer_animator_test_controller.h"
#include "ui/gfx/canvas.h"
#include "ui/views/widget/widget.h"
-using aura::RootWindow;
-using aura::Window;
-using wallpaper::WallpaperLayout;
using wallpaper::WALLPAPER_LAYOUT_CENTER;
using wallpaper::WALLPAPER_LAYOUT_CENTER_CROPPED;
using wallpaper::WALLPAPER_LAYOUT_STRETCH;
@@ -46,8 +40,8 @@ const int kLockScreenBackgroundId =
// Returns number of child windows in a shell window container.
int ChildCountForContainer(int container_id) {
- Window* root = ash::Shell::GetPrimaryRootWindow();
- Window* container = root->GetChildById(container_id);
+ aura::Window* root = ash::Shell::GetPrimaryRootWindow();
+ aura::Window* container = root->GetChildById(container_id);
return static_cast<int>(container->children().size());
}
« no previous file with comments | « ash/desktop_background/desktop_background_controller_test_api.cc ('k') | ash/desktop_background/desktop_background_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698