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

Side by Side Diff: sync/internal_api/sync_rollback_manager_base_unittest.cc

Issue 374183003: Two fixes regarding to bookmark backup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update test Created 6 years, 5 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 | « sync/internal_api/sync_rollback_manager_base.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "sync/internal_api/sync_rollback_manager_base.h" 5 #include "sync/internal_api/sync_rollback_manager_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "sync/internal_api/public/read_node.h" 8 #include "sync/internal_api/public/read_node.h"
9 #include "sync/internal_api/public/read_transaction.h" 9 #include "sync/internal_api/public/read_transaction.h"
10 #include "sync/internal_api/public/test/test_internal_components_factory.h" 10 #include "sync/internal_api/public/test/test_internal_components_factory.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 EXPECT_EQ(BaseNode::INIT_OK, 51 EXPECT_EQ(BaseNode::INIT_OK,
52 pref_root.InitTypeRoot(PREFERENCES)); 52 pref_root.InitTypeRoot(PREFERENCES));
53 53
54 ReadNode bookmark_root(&trans); 54 ReadNode bookmark_root(&trans);
55 EXPECT_EQ(BaseNode::INIT_OK, 55 EXPECT_EQ(BaseNode::INIT_OK,
56 bookmark_root.InitTypeRoot(BOOKMARKS)); 56 bookmark_root.InitTypeRoot(BOOKMARKS));
57 ReadNode bookmark_bar(&trans); 57 ReadNode bookmark_bar(&trans);
58 EXPECT_EQ(BaseNode::INIT_OK, 58 EXPECT_EQ(BaseNode::INIT_OK,
59 bookmark_bar.InitByTagLookupForBookmarks("bookmark_bar")); 59 bookmark_bar.InitByTagLookupForBookmarks("bookmark_bar"));
60 ReadNode bookmark_mobile(&trans); 60 ReadNode bookmark_mobile(&trans);
61 EXPECT_EQ(BaseNode::INIT_OK, 61 EXPECT_EQ(BaseNode::INIT_FAILED_ENTRY_NOT_GOOD,
62 bookmark_mobile.InitByTagLookupForBookmarks("synced_bookmarks")); 62 bookmark_mobile.InitByTagLookupForBookmarks("synced_bookmarks"));
63 ReadNode bookmark_other(&trans); 63 ReadNode bookmark_other(&trans);
64 EXPECT_EQ(BaseNode::INIT_OK, 64 EXPECT_EQ(BaseNode::INIT_OK,
65 bookmark_other.InitByTagLookupForBookmarks("other_bookmarks")); 65 bookmark_other.InitByTagLookupForBookmarks("other_bookmarks"));
66 } 66 }
67 67
68 } // anonymous namespace 68 } // anonymous namespace
69 69
70 } // namespace syncer 70 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_rollback_manager_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698