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

Side by Side Diff: chrome/browser/sync/glue/http_bridge_unittest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 "chrome/browser/sync/glue/http_bridge.h" 8 #include "chrome/browser/sync/glue/http_bridge.h"
9 #include "content/test/test_browser_thread.h" 9 #include "content/public/test/test_browser_thread.h"
10 #include "content/test/test_url_fetcher_factory.h" 10 #include "content/test/test_url_fetcher_factory.h"
11 #include "net/test/test_server.h" 11 #include "net/test/test_server.h"
12 #include "net/url_request/url_fetcher_delegate.h" 12 #include "net/url_request/url_fetcher_delegate.h"
13 #include "net/url_request/url_request_test_util.h" 13 #include "net/url_request/url_request_test_util.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using browser_sync::HttpBridge; 16 using browser_sync::HttpBridge;
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 namespace { 19 namespace {
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 402
403 // Unleash the hounds. The fetch completion callback should fire first, and 403 // Unleash the hounds. The fetch completion callback should fire first, and
404 // succeed even though we Release()d the bridge above because the call to 404 // succeed even though we Release()d the bridge above because the call to
405 // Abort should have held a reference. 405 // Abort should have held a reference.
406 io_waiter.Signal(); 406 io_waiter.Signal();
407 407
408 // Done. 408 // Done.
409 sync_thread.Stop(); 409 sync_thread.Stop();
410 io_thread()->Stop(); 410 io_thread()->Stop();
411 } 411 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698