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

Side by Side Diff: components/sync/engine/net/http_bridge_unittest.cc

Issue 2408463002: [Sync] Move network-related code from core/ to engine/net/. (Closed)
Patch Set: Use SyncServerConnectionManager instead of ServerConnectionManagerImpl. Created 4 years, 2 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "components/sync/core/http_bridge.h" 5 #include "components/sync/engine/net/http_bridge.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bit_cast.h" 9 #include "base/bit_cast.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "components/sync/base/cancelation_signal.h" 15 #include "components/sync/base/cancelation_signal.h"
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 569
570 // Sync thread: Finally run the posted task, only to find that our 570 // Sync thread: Finally run the posted task, only to find that our
571 // HttpBridgeFactory has been neutered. Should not crash. 571 // HttpBridgeFactory has been neutered. Should not crash.
572 factory->Init("TestUserAgent", BindToTrackerCallback()); 572 factory->Init("TestUserAgent", BindToTrackerCallback());
573 573
574 // At this point, attempting to use the factory would trigger a crash. Both 574 // At this point, attempting to use the factory would trigger a crash. Both
575 // this test and the real world code should make sure this never happens. 575 // this test and the real world code should make sure this never happens.
576 } 576 }
577 577
578 } // namespace syncer 578 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/net/http_bridge_network_resources.cc ('k') | components/sync/engine/net/http_post_provider_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698