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

Side by Side Diff: sync/notifier/sync_notifier_factory_unittest.cc

Issue 10837214: Refactor ModelTypePayloadMap and ObjectIdPayloadMap to StateMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 years, 4 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/notifier/p2p_notifier_unittest.cc ('k') | sync/notifier/sync_notifier_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "sync/notifier/sync_notifier_factory.h" 5 #include "sync/notifier/sync_notifier_factory.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "jingle/notifier/base/notification_method.h" 14 #include "jingle/notifier/base/notification_method.h"
15 #include "jingle/notifier/base/notifier_options.h" 15 #include "jingle/notifier/base/notifier_options.h"
16 #include "net/url_request/url_request_test_util.h" 16 #include "net/url_request/url_request_test_util.h"
17 #include "sync/internal_api/public/base/model_type.h" 17 #include "sync/internal_api/public/base/model_type.h"
18 #include "sync/internal_api/public/base/model_type_payload_map.h"
19 #include "sync/notifier/invalidation_state_tracker.h" 18 #include "sync/notifier/invalidation_state_tracker.h"
20 #include "sync/notifier/mock_sync_notifier_observer.h" 19 #include "sync/notifier/mock_sync_notifier_observer.h"
21 #include "sync/notifier/sync_notifier.h" 20 #include "sync/notifier/sync_notifier.h"
22 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
24 23
25 namespace syncer { 24 namespace syncer {
26 namespace { 25 namespace {
27 26
28 using ::testing::Mock; 27 using ::testing::Mock;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ASSERT_TRUE(notifier.get()); 80 ASSERT_TRUE(notifier.get());
82 ObjectIdSet ids = ModelTypeSetToObjectIdSet(ModelTypeSet(syncer::BOOKMARKS)); 81 ObjectIdSet ids = ModelTypeSetToObjectIdSet(ModelTypeSet(syncer::BOOKMARKS));
83 notifier->RegisterHandler(&mock_observer_); 82 notifier->RegisterHandler(&mock_observer_);
84 notifier->UpdateRegisteredIds(&mock_observer_, ids); 83 notifier->UpdateRegisteredIds(&mock_observer_, ids);
85 notifier->UnregisterHandler(&mock_observer_); 84 notifier->UnregisterHandler(&mock_observer_);
86 #endif 85 #endif
87 } 86 }
88 87
89 } // namespace 88 } // namespace
90 } // namespace syncer 89 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/p2p_notifier_unittest.cc ('k') | sync/notifier/sync_notifier_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698