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

Side by Side Diff: sync/test/engine/mock_connection_manager.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
« no previous file with comments | « sync/test/engine/mock_connection_manager.h ('k') | sync/test/engine/syncer_command_test.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 // Mock ServerConnectionManager class for use in client regression tests. 5 // Mock ServerConnectionManager class for use in client regression tests.
6 6
7 #include "chrome/browser/sync/test/engine/mock_connection_manager.h" 7 #include "sync/test/engine/mock_connection_manager.h"
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
13 #include "chrome/browser/sync/engine/syncer_proto_util.h" 13 #include "sync/engine/syncer_proto_util.h"
14 #include "chrome/browser/sync/test/engine/test_id_factory.h" 14 #include "sync/test/engine/test_id_factory.h"
15 #include "sync/protocol/bookmark_specifics.pb.h" 15 #include "sync/protocol/bookmark_specifics.pb.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using browser_sync::HttpResponse; 18 using browser_sync::HttpResponse;
19 using browser_sync::ServerConnectionManager; 19 using browser_sync::ServerConnectionManager;
20 using browser_sync::ServerConnectionEventListener; 20 using browser_sync::ServerConnectionEventListener;
21 using browser_sync::ServerConnectionEvent; 21 using browser_sync::ServerConnectionEvent;
22 using browser_sync::SyncerProtoUtil; 22 using browser_sync::SyncerProtoUtil;
23 using browser_sync::TestIdFactory; 23 using browser_sync::TestIdFactory;
24 using std::map; 24 using std::map;
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 } 650 }
651 651
652 void MockConnectionManager::SetServerNotReachable() { 652 void MockConnectionManager::SetServerNotReachable() {
653 server_status_ = HttpResponse::CONNECTION_UNAVAILABLE; 653 server_status_ = HttpResponse::CONNECTION_UNAVAILABLE;
654 server_reachable_ = false; 654 server_reachable_ = false;
655 655
656 FOR_EACH_OBSERVER(ServerConnectionEventListener, listeners_, 656 FOR_EACH_OBSERVER(ServerConnectionEventListener, listeners_,
657 OnServerConnectionEvent( 657 OnServerConnectionEvent(
658 ServerConnectionEvent(server_status_, server_reachable_))); 658 ServerConnectionEvent(server_status_, server_reachable_)));
659 } 659 }
OLDNEW
« no previous file with comments | « sync/test/engine/mock_connection_manager.h ('k') | sync/test/engine/syncer_command_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698