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

Unified Diff: chrome/test/sync/engine/test_syncable_utils.cc

Issue 429003: Final part of PathString cleanup. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/sync/engine/test_syncable_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/sync/engine/test_syncable_utils.cc
===================================================================
--- chrome/test/sync/engine/test_syncable_utils.cc (revision 32749)
+++ chrome/test/sync/engine/test_syncable_utils.cc (working copy)
@@ -8,11 +8,13 @@
#include "chrome/browser/sync/syncable/syncable.h"
+using std::string;
+
namespace syncable {
int CountEntriesWithName(BaseTransaction* rtrans,
const syncable::Id& parent_id,
- const PathString& name) {
+ const string& name) {
Directory::ChildHandles child_handles;
rtrans->directory()->GetChildHandles(rtrans, parent_id, &child_handles);
if (child_handles.size() <= 0) {
@@ -33,7 +35,7 @@
Id GetFirstEntryWithName(BaseTransaction* rtrans,
const syncable::Id& parent_id,
- const PathString& name) {
+ const string& name) {
Directory::ChildHandles child_handles;
rtrans->directory()->GetChildHandles(rtrans, parent_id, &child_handles);
@@ -52,7 +54,7 @@
Id GetOnlyEntryWithName(BaseTransaction* rtrans,
const syncable::Id& parent_id,
- const PathString& name) {
+ const string& name) {
CHECK(1 == CountEntriesWithName(rtrans, parent_id, name));
return GetFirstEntryWithName(rtrans, parent_id, name);
}
Property changes on: chrome\test\sync\engine\test_syncable_utils.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/test/sync/engine/test_syncable_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698