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

Side by Side Diff: sync/internal_api/syncapi_server_connection_manager_unittest.cc

Issue 10147003: [Sync] Move 'syncapi_core' and 'sync_unit_tests' targets to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win update errors Created 8 years, 8 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/internal_api/syncapi_server_connection_manager.h" 5 #include "sync/internal_api/syncapi_server_connection_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.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 "base/time.h" 13 #include "base/time.h"
14 #include "chrome/browser/sync/internal_api/http_post_provider_factory.h"
15 #include "chrome/browser/sync/internal_api/http_post_provider_interface.h"
16 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "sync/internal_api/http_post_provider_factory.h"
16 #include "sync/internal_api/http_post_provider_interface.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using base::TimeDelta; 19 using base::TimeDelta;
20 using browser_sync::HttpResponse; 20 using browser_sync::HttpResponse;
21 using browser_sync::ServerConnectionManager; 21 using browser_sync::ServerConnectionManager;
22 using browser_sync::ScopedServerStatusWatcher; 22 using browser_sync::ScopedServerStatusWatcher;
23 23
24 namespace sync_api { 24 namespace sync_api {
25 namespace { 25 namespace {
26 26
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 bool result = server.PostBufferToPath( 106 bool result = server.PostBufferToPath(
107 &params, "/testpath", "testauth", &watcher); 107 &params, "/testpath", "testauth", &watcher);
108 108
109 EXPECT_FALSE(result); 109 EXPECT_FALSE(result);
110 EXPECT_EQ(HttpResponse::CONNECTION_UNAVAILABLE, 110 EXPECT_EQ(HttpResponse::CONNECTION_UNAVAILABLE,
111 params.response.server_status); 111 params.response.server_status);
112 abort_thread.Stop(); 112 abort_thread.Stop();
113 } 113 }
114 114
115 } // namespace sync_api 115 } // namespace sync_api
OLDNEW
« no previous file with comments | « sync/internal_api/syncapi_server_connection_manager.cc ('k') | sync/internal_api/syncapi_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698