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

Issue 10850033: contacts: Add ContactStoreFactory and FakeContactStore. (Closed)

Created:
8 years, 4 months ago by Daniel Erat
Modified:
8 years, 4 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

contacts: Add ContactStoreFactory and FakeContactStore. This adds a factory interface for ContactStores and a fake, in-memory implementation of ContactStore. Both will be needed for testing the upcoming ContactManager class. I'm also fixing a bug in GoogleContactStore (all contacts were being passed to ContactDatabase in partial updates instead of just the updated ones) and another bug in FakeContactDatabase::SaveContacts() that was hidden by the GoogleContactStore bug. BUG=128805 TEST=none TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149924

Patch Set 1 #

Patch Set 2 : merge #

Patch Set 3 : add missing clear() call in FakeContactStore #

Total comments: 3

Patch Set 4 : fix GoogleContactStore db-saving bug and FakeContactDatabase partial-update bug and apply review fe… #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -31 lines) Patch
M chrome/browser/chromeos/contacts/contact_store.h View 1 2 3 3 chunks +25 lines, -0 lines 1 comment Download
M chrome/browser/chromeos/contacts/fake_contact_database.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/contacts/fake_contact_database.cc View 1 2 3 3 chunks +27 lines, -2 lines 3 comments Download
A chrome/browser/chromeos/contacts/fake_contact_store.h View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/contacts/fake_contact_store.cc View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/contacts/google_contact_store.h View 1 2 3 2 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/contacts/google_contact_store.cc View 1 2 3 3 chunks +35 lines, -10 lines 2 comments Download
M chrome/browser/chromeos/contacts/google_contact_store_unittest.cc View 1 2 3 4 chunks +23 lines, -17 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Daniel Erat
8 years, 4 months ago (2012-08-03 00:36:54 UTC) #1
satorux1
LGTM with a nit https://chromiumcodereview.appspot.com/10850033/diff/1007/chrome/browser/chromeos/contacts/fake_contact_store.h File chrome/browser/chromeos/contacts/fake_contact_store.h (right): https://chromiumcodereview.appspot.com/10850033/diff/1007/chrome/browser/chromeos/contacts/fake_contact_store.h#newcode76 chrome/browser/chromeos/contacts/fake_contact_store.h:76: void OnFakeContactStoreDestroyed(FakeContactStore* store); I think ...
8 years, 4 months ago (2012-08-03 18:16:52 UTC) #2
Daniel Erat
I snuck in a few bug fixes. Do you mind reviewing the differences between PS3 ...
8 years, 4 months ago (2012-08-03 20:00:23 UTC) #3
satorux1
LGTM http://codereview.chromium.org/10850033/diff/11001/chrome/browser/chromeos/contacts/fake_contact_database.cc File chrome/browser/chromeos/contacts/fake_contact_database.cc (right): http://codereview.chromium.org/10850033/diff/11001/chrome/browser/chromeos/contacts/fake_contact_database.cc#newcode76 chrome/browser/chromeos/contacts/fake_contact_database.cc:76: for (ScopedVector<Contact>::const_iterator existing_it = contacts_.begin(); On 2012/08/03 20:00:23, ...
8 years, 4 months ago (2012-08-03 20:08:14 UTC) #4
Daniel Erat
TBR ben for chrome_tests.gypi
8 years, 4 months ago (2012-08-03 20:16:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10850033/11001
8 years, 4 months ago (2012-08-03 20:17:34 UTC) #6
commit-bot: I haz the power
8 years, 4 months ago (2012-08-03 21:21:54 UTC) #7
Change committed as 149924

Powered by Google App Engine
This is Rietveld 408576698