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

Side by Side Diff: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc

Issue 2695933002: Disable WallpaperManagerBrowserTest.DisplayChange for Chrome OS with Ozone enabled (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" 5 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "ash/common/wallpaper/wallpaper_controller.h" 9 #include "ash/common/wallpaper/wallpaper_controller.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 return old; 620 return old;
621 } 621 }
622 622
623 private: 623 private:
624 int update_wallpaper_count_; 624 int update_wallpaper_count_;
625 WallpaperManager* wallpaper_manager_; 625 WallpaperManager* wallpaper_manager_;
626 626
627 DISALLOW_COPY_AND_ASSIGN(TestObserver); 627 DISALLOW_COPY_AND_ASSIGN(TestObserver);
628 }; 628 };
629 629
630 IN_PROC_BROWSER_TEST_F(WallpaperManagerBrowserTest, DisplayChange) { 630 #if defined(OS_CHROMEOS) && defined(USE_OZONE)
631 #define MAYBE_DisplayChange DISABLED_DisplayChange
632 #else
633 #define MAYBE_DisplayChange DisplayChange
634 #endif
635 IN_PROC_BROWSER_TEST_F(WallpaperManagerBrowserTest, MAYBE_DisplayChange) {
631 TestObserver observer(WallpaperManager::Get()); 636 TestObserver observer(WallpaperManager::Get());
632 637
633 // Set the wallpaper to ensure that UpdateWallpaper() will be called when the 638 // Set the wallpaper to ensure that UpdateWallpaper() will be called when the
634 // display configuration changes. 639 // display configuration changes.
635 gfx::ImageSkia image = wallpaper_manager_test_utils::CreateTestImage( 640 gfx::ImageSkia image = wallpaper_manager_test_utils::CreateTestImage(
636 640, 480, wallpaper_manager_test_utils::kCustomWallpaperColor); 641 640, 480, wallpaper_manager_test_utils::kCustomWallpaperColor);
637 controller_->SetWallpaperImage(image, WALLPAPER_LAYOUT_STRETCH); 642 controller_->SetWallpaperImage(image, WALLPAPER_LAYOUT_STRETCH);
638 643
639 // Small wallpaper images should be used for configurations less than or 644 // Small wallpaper images should be used for configurations less than or
640 // equal to kSmallWallpaperMaxWidth by kSmallWallpaperMaxHeight, even if 645 // equal to kSmallWallpaperMaxWidth by kSmallWallpaperMaxHeight, even if
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 825
821 WallpaperManager::Get()->SetDefaultWallpaperNow(EmptyAccountId()); 826 WallpaperManager::Get()->SetDefaultWallpaperNow(EmptyAccountId());
822 wallpaper_manager_test_utils::WaitAsyncWallpaperLoadFinished(); 827 wallpaper_manager_test_utils::WaitAsyncWallpaperLoadFinished();
823 828
824 EXPECT_TRUE(wallpaper_manager_test_utils::ImageIsNearColor( 829 EXPECT_TRUE(wallpaper_manager_test_utils::ImageIsNearColor(
825 controller_->GetWallpaper(), 830 controller_->GetWallpaper(),
826 wallpaper_manager_test_utils::kSmallDefaultWallpaperColor)); 831 wallpaper_manager_test_utils::kSmallDefaultWallpaperColor));
827 } 832 }
828 833
829 } // namespace chromeos 834 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698