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

Side by Side Diff: chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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 #include "chrome/browser/sync/glue/bridged_sync_notifier.h" 5 #include "chrome/browser/sync/glue/bridged_sync_notifier.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h" 12 #include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h"
13 #include "chrome/browser/sync/notifier/mock_sync_notifier_observer.h" 13 #include "chrome/browser/sync/notifier/mock_sync_notifier_observer.h"
14 #include "chrome/browser/sync/notifier/sync_notifier.h" 14 #include "chrome/browser/sync/notifier/sync_notifier.h"
15 #include "chrome/browser/sync/syncable/model_type.h"
16 #include "chrome/browser/sync/syncable/model_type_test_util.h"
17 #include "chrome/test/base/profile_mock.h" 15 #include "chrome/test/base/profile_mock.h"
18 #include "content/test/test_browser_thread.h" 16 #include "content/test/test_browser_thread.h"
17 #include "sync/syncable/model_type.h"
18 #include "sync/syncable/model_type_test_util.h"
19 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 namespace browser_sync { 22 namespace browser_sync {
23 namespace { 23 namespace {
24 24
25 using ::testing::NiceMock; 25 using ::testing::NiceMock;
26 using ::testing::StrictMock; 26 using ::testing::StrictMock;
27 using content::BrowserThread; 27 using content::BrowserThread;
28 using syncable::HasModelTypes; 28 using syncable::HasModelTypes;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 TEST_F(BridgedSyncNotifierTest, SendNotification) { 116 TEST_F(BridgedSyncNotifierTest, SendNotification) {
117 syncable::ModelTypeSet changed_types(syncable::SESSIONS, 117 syncable::ModelTypeSet changed_types(syncable::SESSIONS,
118 syncable::EXTENSIONS); 118 syncable::EXTENSIONS);
119 EXPECT_CALL(*mock_delegate_, SendNotification(HasModelTypes(changed_types))); 119 EXPECT_CALL(*mock_delegate_, SendNotification(HasModelTypes(changed_types)));
120 bridged_notifier_.SendNotification(changed_types); 120 bridged_notifier_.SendNotification(changed_types);
121 } 121 }
122 122
123 } // namespace 123 } // namespace
124 } // namespace browser_sync 124 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/bookmark_model_associator.cc ('k') | chrome/browser/sync/glue/browser_thread_model_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698