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

Side by Side Diff: chrome/browser/history/android/android_provider_backend_unittest.cc

Issue 10071015: Fix android unit_test compilation errors introduced by https://chromiumcodereview.appspot.com/98520… (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/android/android_provider_backend.cc ('k') | no next file » | 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 "chrome/browser/history/android/android_provider_backend.h" 5 #include "chrome/browser/history/android/android_provider_backend.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 InMemoryHistoryBackend* backend) OVERRIDE {} 53 InMemoryHistoryBackend* backend) OVERRIDE {}
54 virtual void BroadcastNotifications(int type, 54 virtual void BroadcastNotifications(int type,
55 HistoryDetails* details) OVERRIDE { 55 HistoryDetails* details) OVERRIDE {
56 switch (type) { 56 switch (type) {
57 case chrome::NOTIFICATION_HISTORY_URLS_DELETED: 57 case chrome::NOTIFICATION_HISTORY_URLS_DELETED:
58 deleted_details_.reset(static_cast<URLsDeletedDetails*>(details)); 58 deleted_details_.reset(static_cast<URLsDeletedDetails*>(details));
59 break; 59 break;
60 case chrome::NOTIFICATION_FAVICON_CHANGED: 60 case chrome::NOTIFICATION_FAVICON_CHANGED:
61 favicon_details_.reset(static_cast<FaviconChangeDetails*>(details)); 61 favicon_details_.reset(static_cast<FaviconChangeDetails*>(details));
62 break; 62 break;
63 case chrome::NOTIFICATION_HISTORY_TYPED_URLS_MODIFIED: 63 case chrome::NOTIFICATION_HISTORY_URLS_MODIFIED:
64 modified_details_.reset(static_cast<URLsModifiedDetails*>(details)); 64 modified_details_.reset(static_cast<URLsModifiedDetails*>(details));
65 break; 65 break;
66 } 66 }
67 } 67 }
68 virtual void DBLoaded(int backend_id) OVERRIDE {} 68 virtual void DBLoaded(int backend_id) OVERRIDE {}
69 virtual void StartTopSitesMigration(int backend_id) OVERRIDE {} 69 virtual void StartTopSitesMigration(int backend_id) OVERRIDE {}
70 70
71 URLsDeletedDetails* deleted_details() const { 71 URLsDeletedDetails* deleted_details() const {
72 return deleted_details_.get(); 72 return deleted_details_.get();
73 } 73 }
(...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 ASSERT_TRUE(delegate_.modified_details()); 1500 ASSERT_TRUE(delegate_.modified_details());
1501 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size()); 1501 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size());
1502 EXPECT_EQ(row1.url(), 1502 EXPECT_EQ(row1.url(),
1503 delegate_.modified_details()->changed_urls[0].url()); 1503 delegate_.modified_details()->changed_urls[0].url());
1504 EXPECT_EQ(Time::UnixEpoch(), 1504 EXPECT_EQ(Time::UnixEpoch(),
1505 delegate_.modified_details()->changed_urls[0].last_visit()); 1505 delegate_.modified_details()->changed_urls[0].last_visit());
1506 EXPECT_EQ(1u, delegate_.favicon_details()->urls.size()); 1506 EXPECT_EQ(1u, delegate_.favicon_details()->urls.size());
1507 } 1507 }
1508 1508
1509 } // namespace history 1509 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/android/android_provider_backend.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698