OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
8 #include "chrome/browser/bookmark_bar_model.h" | 8 #include "chrome/browser/bookmarks/bookmark_bar_model.h" |
9 #include "chrome/browser/history/history_backend.h" | 9 #include "chrome/browser/history/history_backend.h" |
10 #include "chrome/browser/history/in_memory_history_backend.h" | 10 #include "chrome/browser/history/in_memory_history_backend.h" |
11 #include "chrome/browser/history/in_memory_database.h" | 11 #include "chrome/browser/history/in_memory_database.h" |
12 #include "chrome/common/jpeg_codec.h" | 12 #include "chrome/common/jpeg_codec.h" |
13 #include "chrome/common/thumbnail_score.h" | 13 #include "chrome/common/thumbnail_score.h" |
14 #include "chrome/tools/profiles/thumbnail-inl.h" | 14 #include "chrome/tools/profiles/thumbnail-inl.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 // This file only tests functionality where it is most convenient to call the | 17 // This file only tests functionality where it is most convenient to call the |
18 // backend directly. Most of the history backend functions are tested by the | 18 // backend directly. Most of the history backend functions are tested by the |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 // distracted by the second chain and should return the thumbnail | 379 // distracted by the second chain and should return the thumbnail |
380 // attached to thumbnail_url_. | 380 // attached to thumbnail_url_. |
381 scoped_refptr<RefCountedBytes> data; | 381 scoped_refptr<RefCountedBytes> data; |
382 backend_->GetPageThumbnailDirectly(GURL(base_url), &data); | 382 backend_->GetPageThumbnailDirectly(GURL(base_url), &data); |
383 | 383 |
384 EXPECT_TRUE(data.get()); | 384 EXPECT_TRUE(data.get()); |
385 } | 385 } |
386 | 386 |
387 } // namespace history | 387 } // namespace history |
388 | 388 |
OLD | NEW |