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

Side by Side Diff: chrome/test/sync/engine/mock_connection_manager.cc

Issue 2833047: sync: Get rid of the now obsolete character_set_converters.h API. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: fix indent Created 10 years, 5 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
« no previous file with comments | « chrome/chrome.gyp ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/test/sync/engine/mock_connection_manager.h" 7 #include "chrome/test/sync/engine/mock_connection_manager.h"
8 8
9 #include "chrome/browser/sync/engine/syncer_proto_util.h" 9 #include "chrome/browser/sync/engine/syncer_proto_util.h"
10 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" 10 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
11 #include "chrome/browser/sync/util/character_set_converters.h"
12 #include "chrome/test/sync/engine/test_id_factory.h" 11 #include "chrome/test/sync/engine/test_id_factory.h"
13 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
14 13
15 using browser_sync::HttpResponse; 14 using browser_sync::HttpResponse;
16 using browser_sync::ServerConnectionManager; 15 using browser_sync::ServerConnectionManager;
17 using browser_sync::SyncerProtoUtil; 16 using browser_sync::SyncerProtoUtil;
18 using browser_sync::TestIdFactory; 17 using browser_sync::TestIdFactory;
19 using std::map; 18 using std::map;
20 using std::string; 19 using std::string;
21 using sync_pb::ClientToServerMessage; 20 using sync_pb::ClientToServerMessage;
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 484
486 void MockConnectionManager::SetServerNotReachable() { 485 void MockConnectionManager::SetServerNotReachable() {
487 server_status_ = HttpResponse::CONNECTION_UNAVAILABLE; 486 server_status_ = HttpResponse::CONNECTION_UNAVAILABLE;
488 server_reachable_ = false; 487 server_reachable_ = false;
489 browser_sync::ServerConnectionEvent event = { 488 browser_sync::ServerConnectionEvent event = {
490 browser_sync::ServerConnectionEvent::STATUS_CHANGED, 489 browser_sync::ServerConnectionEvent::STATUS_CHANGED,
491 server_status_, 490 server_status_,
492 server_reachable_ }; 491 server_reachable_ };
493 channel_->NotifyListeners(event); 492 channel_->NotifyListeners(event);
494 } 493 }
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698