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

Side by Side Diff: chrome/browser/history/history_backend_unittest.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 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/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_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 using base::Time;
18
17 // This file only tests functionality where it is most convenient to call the 19 // 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 20 // backend directly. Most of the history backend functions are tested by the
19 // history unit test. Because of the elaborate callbacks involved, this is no 21 // history unit test. Because of the elaborate callbacks involved, this is no
20 // harder than calling it directly for many things. 22 // harder than calling it directly for many things.
21 23
22 namespace history { 24 namespace history {
23 25
24 class HistoryBackendTest; 26 class HistoryBackendTest;
25 27
26 // This must be a separate object since HistoryBackend manages its lifetime. 28 // This must be a separate object since HistoryBackend manages its lifetime.
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Now try to get the thumbnail for the base url. It shouldn't be 380 // Now try to get the thumbnail for the base url. It shouldn't be
379 // distracted by the second chain and should return the thumbnail 381 // distracted by the second chain and should return the thumbnail
380 // attached to thumbnail_url_. 382 // attached to thumbnail_url_.
381 scoped_refptr<RefCountedBytes> data; 383 scoped_refptr<RefCountedBytes> data;
382 backend_->GetPageThumbnailDirectly(GURL(base_url), &data); 384 backend_->GetPageThumbnailDirectly(GURL(base_url), &data);
383 385
384 EXPECT_TRUE(data.get()); 386 EXPECT_TRUE(data.get());
385 } 387 }
386 388
387 } // namespace history 389 } // namespace history
388
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698