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

Side by Side Diff: chrome/browser/sync/profile_sync_service_bookmark_unittest.cc

Issue 133503011: Move files from //chrome/browser/sync to sync_driver component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
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 // TODO(akalin): This file is basically just a unit test for 5 // TODO(akalin): This file is basically just a unit test for
6 // BookmarkChangeProcessor. Write unit tests for 6 // BookmarkChangeProcessor. Write unit tests for
7 // BookmarkModelAssociator separately. 7 // BookmarkModelAssociator separately.
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 10 matching lines...) Expand all
21 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
22 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
23 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "base/time/time.h" 24 #include "base/time/time.h"
25 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" 25 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h"
26 #include "chrome/browser/bookmarks/bookmark_model.h" 26 #include "chrome/browser/bookmarks/bookmark_model.h"
27 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 27 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
28 #include "chrome/browser/bookmarks/bookmark_test_helpers.h" 28 #include "chrome/browser/bookmarks/bookmark_test_helpers.h"
29 #include "chrome/browser/sync/glue/bookmark_change_processor.h" 29 #include "chrome/browser/sync/glue/bookmark_change_processor.h"
30 #include "chrome/browser/sync/glue/bookmark_model_associator.h" 30 #include "chrome/browser/sync/glue/bookmark_model_associator.h"
31 #include "chrome/browser/sync/glue/data_type_error_handler_mock.h"
32 #include "chrome/common/chrome_switches.h" 31 #include "chrome/common/chrome_switches.h"
33 #include "chrome/test/base/testing_profile.h" 32 #include "chrome/test/base/testing_profile.h"
34 #include "components/sync_driver/data_type_error_handler.h" 33 #include "components/sync_driver/data_type_error_handler.h"
34 #include "components/sync_driver/data_type_error_handler_mock.h"
35 #include "content/public/test/test_browser_thread.h" 35 #include "content/public/test/test_browser_thread.h"
36 #include "sync/api/sync_error.h" 36 #include "sync/api/sync_error.h"
37 #include "sync/internal_api/public/change_record.h" 37 #include "sync/internal_api/public/change_record.h"
38 #include "sync/internal_api/public/read_node.h" 38 #include "sync/internal_api/public/read_node.h"
39 #include "sync/internal_api/public/read_transaction.h" 39 #include "sync/internal_api/public/read_transaction.h"
40 #include "sync/internal_api/public/test/test_user_share.h" 40 #include "sync/internal_api/public/test/test_user_share.h"
41 #include "sync/internal_api/public/write_node.h" 41 #include "sync/internal_api/public/write_node.h"
42 #include "sync/internal_api/public/write_transaction.h" 42 #include "sync/internal_api/public/write_transaction.h"
43 #include "sync/syncable/mutable_entry.h" // TODO(tim): Remove. Bug 131130. 43 #include "sync/syncable/mutable_entry.h" // TODO(tim): Remove. Bug 131130.
44 #include "testing/gmock/include/gmock/gmock.h" 44 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 int64 root_version = initial_versions[model_->root_node()->id()]; 2106 int64 root_version = initial_versions[model_->root_node()->id()];
2107 model_->SetNodeSyncTransactionVersion(model_->root_node(), root_version + 1); 2107 model_->SetNodeSyncTransactionVersion(model_->root_node(), root_version + 1);
2108 2108
2109 // Upon association, bookmarks should fail to associate. 2109 // Upon association, bookmarks should fail to associate.
2110 EXPECT_FALSE(AssociateModels()); 2110 EXPECT_FALSE(AssociateModels());
2111 } 2111 }
2112 2112
2113 } // namespace 2113 } // namespace
2114 2114
2115 } // namespace browser_sync 2115 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698