| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 9 #include "base/test/sequenced_worker_pool_owner.h" | 10 #include "base/test/sequenced_worker_pool_owner.h" |
| 10 #include "components/wallpaper/wallpaper_resizer.h" | 11 #include "components/wallpaper/wallpaper_resizer.h" |
| 11 #include "components/wallpaper/wallpaper_resizer_observer.h" | 12 #include "components/wallpaper/wallpaper_resizer_observer.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "ui/gfx/image/image_skia_rep.h" | 14 #include "ui/gfx/image/image_skia_rep.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 const int kTestImageWidth = 5; | 18 const int kTestImageWidth = 5; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 worker_pool()); | 149 worker_pool()); |
| 149 EXPECT_EQ(WallpaperResizer::GetImageId(image), resizer.original_image_id()); | 150 EXPECT_EQ(WallpaperResizer::GetImageId(image), resizer.original_image_id()); |
| 150 resizer.AddObserver(this); | 151 resizer.AddObserver(this); |
| 151 resizer.StartResize(); | 152 resizer.StartResize(); |
| 152 WaitForResize(); | 153 WaitForResize(); |
| 153 resizer.RemoveObserver(this); | 154 resizer.RemoveObserver(this); |
| 154 EXPECT_EQ(WallpaperResizer::GetImageId(image), resizer.original_image_id()); | 155 EXPECT_EQ(WallpaperResizer::GetImageId(image), resizer.original_image_id()); |
| 155 } | 156 } |
| 156 | 157 |
| 157 } // namespace ash | 158 } // namespace ash |
| OLD | NEW |