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

Unified Diff: ios/web/public/test/fakes/test_web_state.mm

Issue 2971093002: [ios] Take snapshot for tab grid. (Closed)
Patch Set: Update unit test. Created 3 years, 5 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: ios/web/public/test/fakes/test_web_state.mm
diff --git a/ios/web/public/test/fakes/test_web_state.mm b/ios/web/public/test/fakes/test_web_state.mm
index 97b631d3edb43872d941af58fee98f34b2277666..f5a4b9954aedf6d0edc2a6479ea7311ad211e23b 100644
--- a/ios/web/public/test/fakes/test_web_state.mm
+++ b/ios/web/public/test/fakes/test_web_state.mm
@@ -235,8 +235,7 @@ bool TestWebState::HasOpener() const {
void TestWebState::TakeSnapshot(const SnapshotCallback& callback,
CGSize target_size) const {
- base::SequencedTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(callback, gfx::Image()));
+ callback.Run(gfx::Image([[UIImage alloc] init]));
}
base::WeakPtr<WebState> TestWebState::AsWeakPtr() {

Powered by Google App Engine
This is Rietveld 408576698