DescriptionResourceId and unit test cleanup.
* GDataEntry must always be constructed with a valid directory_service ptr. Add a DCHECK for this, and remove runtime tests for null directory_service_ ptr in all methods.
* RemoveEntryFromResourceMap takes resource_id instead of GDataEntry*.
* RemoveEntryFromResourceMap ensures resource_id is non-empty and that an actual deletion occurs every time.
* AddEntryToResourceMap has a DCHECK to guard against multiple additions, or addition of empty resource_id.
* Remove accessors child_files() and child_directories() and make typedefs for GDataFileCollection and GDataDirectoryCollection private.
* Move GetChildDirectoryPaths from gdata_wapi_feed_processor.cc anon namespace to GDataDirectory.
* Fixes for unit tests that added entries with null resource ids, and duplicate resource ids.
BUG=137725
TEST=unit tests.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152151
Patch Set 1 #Patch Set 2 : missing file #Patch Set 3 : reverts #Patch Set 4 : more unit test fixes #Patch Set 5 : minor #
Total comments: 4
Messages
Total messages: 3 (0 generated)
|