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

Unified Diff: chrome/browser/tab_contents/thumbnail_generator_unittest.cc

Issue 661237: This adds in the ability for Chrome to generate windows with snapshots of all... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/thumbnail_generator_unittest.cc
===================================================================
--- chrome/browser/tab_contents/thumbnail_generator_unittest.cc (revision 45523)
+++ chrome/browser/tab_contents/thumbnail_generator_unittest.cc (working copy)
@@ -11,8 +11,8 @@
#include "chrome/common/notification_service.h"
#include "chrome/common/render_messages.h"
#include "chrome/test/testing_profile.h"
+#include "skia/ext/platform_canvas.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "skia/ext/platform_canvas.h"
#include "third_party/skia/include/core/SkColorPriv.h"
static const int kBitmapWidth = 100;
@@ -142,7 +142,7 @@
SendPaint(TRANSPORT_BLACK);
widget_.WasHidden();
ASSERT_TRUE(BackingStoreManager::ExpireBackingStoreForTest(&widget_));
- ASSERT_FALSE(widget_.GetBackingStore(false));
+ ASSERT_FALSE(widget_.GetBackingStore(false, false));
// The thumbnail generator should have stashed a thumbnail of the page.
SkBitmap result = generator_.GetThumbnailForRenderer(&widget_);
@@ -156,7 +156,7 @@
SendPaint(TRANSPORT_BLACK);
widget_.WasHidden();
ASSERT_TRUE(BackingStoreManager::ExpireBackingStoreForTest(&widget_));
- ASSERT_FALSE(widget_.GetBackingStore(false));
+ ASSERT_FALSE(widget_.GetBackingStore(false, false));
// Now show the widget and paint white.
widget_.WasRestored();
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698