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

Side by Side Diff: components/image_fetcher/ios/ios_image_decoder_impl_unittest.mm

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "components/image_fetcher/ios/ios_image_decoder_impl.h" 5 #include "components/image_fetcher/ios/ios_image_decoder_impl.h"
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 12 #include "base/run_loop.h"
12 #include "base/threading/sequenced_worker_pool.h" 13 #include "base/threading/sequenced_worker_pool.h"
13 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/platform_test.h" 16 #include "testing/platform_test.h"
16 #include "ui/gfx/geometry/size.h" 17 #include "ui/gfx/geometry/size.h"
17 #include "ui/gfx/image/image.h" 18 #include "ui/gfx/image/image.h"
18 19
19 #if !defined(__has_feature) || !__has_feature(objc_arc) 20 #if !defined(__has_feature) || !__has_feature(objc_arc)
20 #error "This file requires ARC support." 21 #error "This file requires ARC support."
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 base::Bind(&IOSImageDecoderImplTest::OnImageDecoded, 104 base::Bind(&IOSImageDecoderImplTest::OnImageDecoded,
104 base::Unretained(this))); 105 base::Unretained(this)));
105 106
106 pool_->FlushForTesting(); 107 pool_->FlushForTesting();
107 base::RunLoop().RunUntilIdle(); 108 base::RunLoop().RunUntilIdle();
108 109
109 EXPECT_FALSE(decoded_image_.IsEmpty()); 110 EXPECT_FALSE(decoded_image_.IsEmpty());
110 } 111 }
111 112
112 } // namespace image_fetcher 113 } // namespace image_fetcher
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698