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

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

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/stringprintf.h" 6 #include "base/stringprintf.h"
7 #include "chrome/browser/history/top_sites.h" 7 #include "chrome/browser/history/top_sites.h"
8 #include "chrome/browser/tab_contents/thumbnail_generator.h" 8 #include "chrome/browser/tab_contents/thumbnail_generator.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 #include "chrome/test/base/testing_browser_process_test.h"
10 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
11 #include "chrome/test/testing_browser_process_test.h"
12 #include "content/browser/renderer_host/backing_store_manager.h" 12 #include "content/browser/renderer_host/backing_store_manager.h"
13 #include "content/browser/renderer_host/backing_store_skia.h" 13 #include "content/browser/renderer_host/backing_store_skia.h"
14 #include "content/browser/renderer_host/mock_render_process_host.h" 14 #include "content/browser/renderer_host/mock_render_process_host.h"
15 #include "content/browser/renderer_host/test_render_view_host.h" 15 #include "content/browser/renderer_host/test_render_view_host.h"
16 #include "content/browser/tab_contents/render_view_host_manager.h" 16 #include "content/browser/tab_contents/render_view_host_manager.h"
17 #include "content/common/notification_service.h" 17 #include "content/common/notification_service.h"
18 #include "content/common/view_messages.h" 18 #include "content/common/view_messages.h"
19 #include "skia/ext/platform_canvas.h" 19 #include "skia/ext/platform_canvas.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 #include "third_party/skia/include/core/SkColorPriv.h" 21 #include "third_party/skia/include/core/SkColorPriv.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 good_score.good_clipping = true; 399 good_score.good_clipping = true;
400 good_score.boring_score = 0.0; 400 good_score.boring_score = 0.0;
401 good_score.load_completed = true; 401 good_score.load_completed = true;
402 top_sites->AddKnownURL(kGoodURL, good_score); 402 top_sites->AddKnownURL(kGoodURL, good_score);
403 403
404 // Should be false, as the existing thumbnail is good enough (i.e. don't 404 // Should be false, as the existing thumbnail is good enough (i.e. don't
405 // need to replace the existing thumbnail which is new and good). 405 // need to replace the existing thumbnail which is new and good).
406 EXPECT_FALSE(ThumbnailGenerator::ShouldUpdateThumbnail( 406 EXPECT_FALSE(ThumbnailGenerator::ShouldUpdateThumbnail(
407 &profile, top_sites.get(), kGoodURL)); 407 &profile, top_sites.get(), kGoodURL));
408 } 408 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.cc ('k') | chrome/browser/translate/translate_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698