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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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 "base/message_loop_proxy.h" 5 #include "base/message_loop_proxy.h"
6 #include "base/synchronization/waitable_event.h" 6 #include "base/synchronization/waitable_event.h"
7 #include "base/threading/thread.h" 7 #include "base/threading/thread.h"
8 #include "net/test/test_server.h" 8 #include "net/test/test_server.h"
9 #include "net/url_request/test_url_fetcher_factory.h" 9 #include "net/url_request/test_url_fetcher_factory.h"
10 #include "net/url_request/url_fetcher_delegate.h" 10 #include "net/url_request/url_fetcher_delegate.h"
11 #include "net/url_request/url_request_test_util.h" 11 #include "net/url_request/url_request_test_util.h"
12 #include "sync/internal_api/public/http_bridge.h" 12 #include "sync/internal_api/public/http_bridge.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using browser_sync::HttpBridge; 15 namespace syncer {
16 16
17 namespace { 17 namespace {
18 // TODO(timsteele): Should use PathService here. See Chromium Issue 3113. 18 // TODO(timsteele): Should use PathService here. See Chromium Issue 3113.
19 const FilePath::CharType kDocRoot[] = FILE_PATH_LITERAL("chrome/test/data"); 19 const FilePath::CharType kDocRoot[] = FILE_PATH_LITERAL("chrome/test/data");
20 } 20 }
21 21
22 class SyncHttpBridgeTest : public testing::Test { 22 class SyncHttpBridgeTest : public testing::Test {
23 public: 23 public:
24 SyncHttpBridgeTest() 24 SyncHttpBridgeTest()
25 : test_server_(net::TestServer::TYPE_HTTP, 25 : test_server_(net::TestServer::TYPE_HTTP,
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 // Unleash the hounds. The fetch completion callback should fire first, and 396 // Unleash the hounds. The fetch completion callback should fire first, and
397 // succeed even though we Release()d the bridge above because the call to 397 // succeed even though we Release()d the bridge above because the call to
398 // Abort should have held a reference. 398 // Abort should have held a reference.
399 io_waiter.Signal(); 399 io_waiter.Signal();
400 400
401 // Done. 401 // Done.
402 sync_thread.Stop(); 402 sync_thread.Stop();
403 io_thread()->Stop(); 403 io_thread()->Stop();
404 } 404 }
405
406 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698