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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 <string> 5 #include <string>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 17 matching lines...) Expand all
28 #include "chrome/test/base/testing_profile.h" 28 #include "chrome/test/base/testing_profile.h"
29 #include "chrome/tools/profiles/thumbnail-inl.h" 29 #include "chrome/tools/profiles/thumbnail-inl.h"
30 #include "content/test/test_browser_thread.h" 30 #include "content/test/test_browser_thread.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
32 #include "third_party/skia/include/core/SkBitmap.h" 32 #include "third_party/skia/include/core/SkBitmap.h"
33 #include "ui/gfx/codec/jpeg_codec.h" 33 #include "ui/gfx/codec/jpeg_codec.h"
34 34
35 using base::Time; 35 using base::Time;
36 using base::TimeDelta; 36 using base::TimeDelta;
37 using base::TimeTicks; 37 using base::TimeTicks;
38 using content::BrowserThread;
38 39
39 // Filename constants. 40 // Filename constants.
40 static const FilePath::CharType kHistoryFile[] = FILE_PATH_LITERAL("History"); 41 static const FilePath::CharType kHistoryFile[] = FILE_PATH_LITERAL("History");
41 static const FilePath::CharType kArchivedHistoryFile[] = 42 static const FilePath::CharType kArchivedHistoryFile[] =
42 FILE_PATH_LITERAL("Archived History"); 43 FILE_PATH_LITERAL("Archived History");
43 static const FilePath::CharType kThumbnailFile[] = 44 static const FilePath::CharType kThumbnailFile[] =
44 FILE_PATH_LITERAL("Thumbnails"); 45 FILE_PATH_LITERAL("Thumbnails");
45 46
46 // The test must be in the history namespace for the gtest forward declarations 47 // The test must be in the history namespace for the gtest forward declarations
47 // to work. It also eliminates a bunch of ugly "history::". 48 // to work. It also eliminates a bunch of ugly "history::".
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 main_db_->GetVisitsForURL(url_id, &archived_visits); 915 main_db_->GetVisitsForURL(url_id, &archived_visits);
915 EXPECT_EQ(0U, archived_visits.size()); 916 EXPECT_EQ(0U, archived_visits.size());
916 } 917 }
917 918
918 // TODO(brettw) add some visits with no URL to make sure everything is updated 919 // TODO(brettw) add some visits with no URL to make sure everything is updated
919 // properly. Have the visits also refer to nonexistent FTS rows. 920 // properly. Have the visits also refer to nonexistent FTS rows.
920 // 921 //
921 // Maybe also refer to invalid favicons. 922 // Maybe also refer to invalid favicons.
922 923
923 } // namespace history 924 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/google/google_url_tracker_unittest.cc ('k') | chrome/browser/history/history_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698