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

Unified Diff: chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc

Issue 9512005: [Sync] Move BridgedSyncNotifier and ChromeSyncNotificationBridge to glue/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc
diff --git a/chrome/browser/sync/notifier/bridged_sync_notifier_unittest.cc b/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc
similarity index 85%
rename from chrome/browser/sync/notifier/bridged_sync_notifier_unittest.cc
rename to chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc
index c6fde30a1221675369650915583098dfe8bd12d2..42a2ec1a94c85701ede2a8913953e57282cdadfe 100644
--- a/chrome/browser/sync/notifier/bridged_sync_notifier_unittest.cc
+++ b/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/sync/notifier/bridged_sync_notifier.h"
+#include "chrome/browser/sync/glue/bridged_sync_notifier.h"
#include <string>
#include "base/compiler_specific.h"
#include "base/message_loop.h"
#include "base/threading/thread.h"
-#include "chrome/browser/sync/notifier/chrome_sync_notification_bridge.h"
+#include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h"
#include "chrome/browser/sync/notifier/mock_sync_notifier_observer.h"
#include "chrome/browser/sync/notifier/sync_notifier.h"
#include "chrome/browser/sync/syncable/model_type.h"
@@ -19,7 +19,7 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace sync_notifier {
+namespace browser_sync {
namespace {
using ::testing::NiceMock;
@@ -33,19 +33,19 @@ class MockChromeSyncNotificationBridge : public ChromeSyncNotificationBridge {
: ChromeSyncNotificationBridge(&mock_profile_) {}
virtual ~MockChromeSyncNotificationBridge() {}
- MOCK_METHOD1(AddObserver, void(SyncNotifierObserver*));
- MOCK_METHOD1(RemoveObserver, void(SyncNotifierObserver*));
+ MOCK_METHOD1(AddObserver, void(sync_notifier::SyncNotifierObserver*));
+ MOCK_METHOD1(RemoveObserver, void(sync_notifier::SyncNotifierObserver*));
private:
NiceMock<ProfileMock> mock_profile_;
};
-class MockSyncNotifier : public SyncNotifier {
+class MockSyncNotifier : public sync_notifier::SyncNotifier {
public:
MockSyncNotifier() {}
virtual ~MockSyncNotifier() {}
- MOCK_METHOD1(AddObserver, void(SyncNotifierObserver*));
- MOCK_METHOD1(RemoveObserver, void(SyncNotifierObserver*));
+ MOCK_METHOD1(AddObserver, void(sync_notifier::SyncNotifierObserver*));
+ MOCK_METHOD1(RemoveObserver, void(sync_notifier::SyncNotifierObserver*));
MOCK_METHOD1(SetUniqueId, void(const std::string&));
MOCK_METHOD1(SetState, void(const std::string&));
MOCK_METHOD2(UpdateCredentials, void(const std::string&, const std::string&));
@@ -73,14 +73,14 @@ class BridgedSyncNotifierTest : public testing::Test {
};
TEST_F(BridgedSyncNotifierTest, AddObserver) {
- MockSyncNotifierObserver observer;
+ sync_notifier::MockSyncNotifierObserver observer;
EXPECT_CALL(mock_bridge_, AddObserver(&observer));
EXPECT_CALL(*mock_delegate_, AddObserver(&observer));
bridged_notifier_.AddObserver(&observer);
}
TEST_F(BridgedSyncNotifierTest, RemoveObserver) {
- MockSyncNotifierObserver observer;
+ sync_notifier::MockSyncNotifierObserver observer;
EXPECT_CALL(mock_bridge_, RemoveObserver(&observer));
EXPECT_CALL(*mock_delegate_, RemoveObserver(&observer));
bridged_notifier_.RemoveObserver(&observer);
@@ -121,4 +121,4 @@ TEST_F(BridgedSyncNotifierTest, SendNotification) {
}
} // namespace
-} // namespace sync_notifier
+} // namespace browser_sync
« no previous file with comments | « chrome/browser/sync/glue/bridged_sync_notifier.cc ('k') | chrome/browser/sync/glue/chrome_sync_notification_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698