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

Side by Side Diff: chrome/browser/tab_contents/thumbnail_generator_unittest.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/surface/transport_dib.h" 5 #include "app/surface/transport_dib.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "chrome/browser/history/top_sites.h" 8 #include "chrome/browser/history/top_sites.h"
9 #include "chrome/browser/renderer_host/backing_store_manager.h" 9 #include "chrome/browser/renderer_host/backing_store_manager.h"
10 #include "chrome/browser/renderer_host/mock_render_process_host.h" 10 #include "chrome/browser/renderer_host/mock_render_process_host.h"
11 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 11 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
12 #include "chrome/browser/tab_contents/thumbnail_generator.h" 12 #include "chrome/browser/tab_contents/thumbnail_generator.h"
13 #include "chrome/common/notification_service.h" 13 #include "chrome/common/notification_service.h"
14 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
15 #include "chrome/test/testing_profile.h" 15 #include "chrome/test/testing_profile.h"
16 #include "gfx/canvas_skia.h"
17 #include "skia/ext/platform_canvas.h" 16 #include "skia/ext/platform_canvas.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 #include "third_party/skia/include/core/SkColorPriv.h" 18 #include "third_party/skia/include/core/SkColorPriv.h"
19 #include "ui/gfx/canvas_skia.h"
20 20
21 static const int kBitmapWidth = 100; 21 static const int kBitmapWidth = 100;
22 static const int kBitmapHeight = 100; 22 static const int kBitmapHeight = 100;
23 23
24 // TODO(brettw) enable this when GetThumbnailForBackingStore is implemented 24 // TODO(brettw) enable this when GetThumbnailForBackingStore is implemented
25 // for other platforms in thumbnail_generator.cc 25 // for other platforms in thumbnail_generator.cc
26 // #if defined(OS_WIN) 26 // #if defined(OS_WIN)
27 // TODO(brettw) enable this on Windows after we clobber a build to see if the 27 // TODO(brettw) enable this on Windows after we clobber a build to see if the
28 // failures of this on the buildbot can be resolved. 28 // failures of this on the buildbot can be resolved.
29 #if 0 29 #if 0
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 good_score.at_top = true; 370 good_score.at_top = true;
371 good_score.good_clipping = true; 371 good_score.good_clipping = true;
372 good_score.boring_score = 0.0; 372 good_score.boring_score = 0.0;
373 top_sites->AddKnownURL(kGoodURL, good_score); 373 top_sites->AddKnownURL(kGoodURL, good_score);
374 374
375 // Should be false, as the existing thumbnail is good enough (i.e. don't 375 // Should be false, as the existing thumbnail is good enough (i.e. don't
376 // need to replace the existing thumbnail which is new and good). 376 // need to replace the existing thumbnail which is new and good).
377 EXPECT_FALSE(ThumbnailGenerator::ShouldUpdateThumbnail( 377 EXPECT_FALSE(ThumbnailGenerator::ShouldUpdateThumbnail(
378 &profile, top_sites.get(), kGoodURL)); 378 &profile, top_sites.get(), kGoodURL));
379 } 379 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator.cc ('k') | chrome/browser/tab_contents/web_drag_source_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698