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

Side by Side Diff: chrome/browser/sync/glue/chrome_sync_notification_bridge_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/chrome_sync_notification_bridge.h" 5 #include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
11 #include "base/test/test_timeouts.h" 11 #include "base/test/test_timeouts.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "chrome/browser/sync/syncable/model_type.h"
14 #include "chrome/browser/sync/syncable/model_type_payload_map.h"
15 #include "chrome/browser/sync/notifier/mock_sync_notifier_observer.h" 13 #include "chrome/browser/sync/notifier/mock_sync_notifier_observer.h"
16 #include "chrome/browser/sync/notifier/sync_notifier_observer.h" 14 #include "chrome/browser/sync/notifier/sync_notifier_observer.h"
17 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
18 #include "chrome/test/base/profile_mock.h" 16 #include "chrome/test/base/profile_mock.h"
17 #include "content/public/browser/notification_details.h"
19 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
20 #include "content/public/browser/notification_details.h"
21 #include "content/test/test_browser_thread.h" 19 #include "content/test/test_browser_thread.h"
20 #include "sync/syncable/model_type.h"
21 #include "sync/syncable/model_type_payload_map.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace browser_sync { 25 namespace browser_sync {
26 namespace { 26 namespace {
27 27
28 using ::testing::Mock; 28 using ::testing::Mock;
29 using ::testing::NiceMock; 29 using ::testing::NiceMock;
30 using ::testing::StrictMock; 30 using ::testing::StrictMock;
31 using content::BrowserThread; 31 using content::BrowserThread;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 TEST_F(ChromeSyncNotificationBridgeTest, BasicThreaded) { 206 TEST_F(ChromeSyncNotificationBridgeTest, BasicThreaded) {
207 syncable::ModelTypePayloadMap payload_map; 207 syncable::ModelTypePayloadMap payload_map;
208 payload_map[syncable::SESSIONS] = ""; 208 payload_map[syncable::SESSIONS] = "";
209 CreateObserverWithExpectedPayload(payload_map); 209 CreateObserverWithExpectedPayload(payload_map);
210 TriggerRefreshNotification(); 210 TriggerRefreshNotification();
211 VerifyAndDestroyObserver(); 211 VerifyAndDestroyObserver();
212 } 212 }
213 213
214 } // namespace 214 } // namespace
215 } // namespace browser_sync 215 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/chrome_extensions_activity_monitor.h ('k') | chrome/browser/sync/glue/data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698