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

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

Issue 10067018: Add PrerenderLocalPredictor, which will eventually perform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/history_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <set> 5 #include <set>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 explicit HistoryBackendTestDelegate(HistoryBackendTest* test) : test_(test) {} 57 explicit HistoryBackendTestDelegate(HistoryBackendTest* test) : test_(test) {}
58 58
59 virtual void NotifyProfileError(int backend_id, 59 virtual void NotifyProfileError(int backend_id,
60 sql::InitStatus init_status) OVERRIDE {} 60 sql::InitStatus init_status) OVERRIDE {}
61 virtual void SetInMemoryBackend(int backend_id, 61 virtual void SetInMemoryBackend(int backend_id,
62 InMemoryHistoryBackend* backend) OVERRIDE; 62 InMemoryHistoryBackend* backend) OVERRIDE;
63 virtual void BroadcastNotifications(int type, 63 virtual void BroadcastNotifications(int type,
64 HistoryDetails* details) OVERRIDE; 64 HistoryDetails* details) OVERRIDE;
65 virtual void DBLoaded(int backend_id) OVERRIDE; 65 virtual void DBLoaded(int backend_id) OVERRIDE;
66 virtual void StartTopSitesMigration(int backend_id) OVERRIDE; 66 virtual void StartTopSitesMigration(int backend_id) OVERRIDE;
67 virtual void NotifyVisitDBObserversOnAddVisit(
68 const BriefVisitInfo& info) OVERRIDE {}
67 69
68 private: 70 private:
69 // Not owned by us. 71 // Not owned by us.
70 HistoryBackendTest* test_; 72 HistoryBackendTest* test_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(HistoryBackendTestDelegate); 74 DISALLOW_COPY_AND_ASSIGN(HistoryBackendTestDelegate);
73 }; 75 };
74 76
75 class HistoryBackendCancelableRequest : public CancelableRequestProvider, 77 class HistoryBackendCancelableRequest : public CancelableRequestProvider,
76 public CancelableRequestConsumerBase { 78 public CancelableRequestConsumerBase {
(...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 EXPECT_EQ(cur_version, file_version); 1496 EXPECT_EQ(cur_version, file_version);
1495 1497
1496 // Check visit_duration column in visits table is created and set to 0. 1498 // Check visit_duration column in visits table is created and set to 0.
1497 s1.Assign(archived_db.GetUniqueStatement( 1499 s1.Assign(archived_db.GetUniqueStatement(
1498 "SELECT visit_duration FROM visits LIMIT 1")); 1500 "SELECT visit_duration FROM visits LIMIT 1"));
1499 ASSERT_TRUE(s1.Step()); 1501 ASSERT_TRUE(s1.Step());
1500 EXPECT_EQ(0, s1.ColumnInt(0)); 1502 EXPECT_EQ(0, s1.ColumnInt(0));
1501 } 1503 }
1502 1504
1503 } // namespace history 1505 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/history_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698