| OLD | NEW |
| 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/ref_counted_memory.h" | 13 #include "base/ref_counted_memory.h" |
| 14 #include "base/scoped_temp_dir.h" | 14 #include "base/scoped_temp_dir.h" |
| 15 #include "chrome/browser/history/thumbnail_database.h" | 15 #include "chrome/browser/history/thumbnail_database.h" |
| 16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
| 17 #include "chrome/common/chrome_switches.h" | |
| 18 #include "chrome/browser/history/top_sites.h" | 17 #include "chrome/browser/history/top_sites.h" |
| 19 #include "chrome/common/thumbnail_score.h" | 18 #include "chrome/common/thumbnail_score.h" |
| 20 #include "chrome/tools/profiles/thumbnail-inl.h" | 19 #include "chrome/tools/profiles/thumbnail-inl.h" |
| 21 #include "gfx/codec/jpeg_codec.h" | 20 #include "gfx/codec/jpeg_codec.h" |
| 22 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 24 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
| 25 | 24 |
| 26 using base::Time; | 25 using base::Time; |
| 27 using base::TimeDelta; | 26 using base::TimeDelta; |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 EXPECT_TRUE(db.GetFavIcon(id, &time_out, &favicon_out, &url_out)); | 382 EXPECT_TRUE(db.GetFavIcon(id, &time_out, &favicon_out, &url_out)); |
| 384 EXPECT_EQ(url, url_out); | 383 EXPECT_EQ(url, url_out); |
| 385 EXPECT_EQ(time.ToTimeT(), time_out.ToTimeT()); | 384 EXPECT_EQ(time.ToTimeT(), time_out.ToTimeT()); |
| 386 ASSERT_EQ(data.size(), favicon_out.size()); | 385 ASSERT_EQ(data.size(), favicon_out.size()); |
| 387 EXPECT_TRUE(std::equal(data.begin(), | 386 EXPECT_TRUE(std::equal(data.begin(), |
| 388 data.end(), | 387 data.end(), |
| 389 favicon_out.begin())); | 388 favicon_out.begin())); |
| 390 } | 389 } |
| 391 | 390 |
| 392 } // namespace history | 391 } // namespace history |
| OLD | NEW |