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

Side by Side Diff: content/browser/browser_thread_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/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/sequenced_task_runner_helpers.h" 10 #include "base/sequenced_task_runner_helpers.h"
11 #include "content/browser/browser_thread_impl.h" 11 #include "content/browser/browser_thread_impl.h"
12 #include "content/test/test_browser_thread.h" 12 #include "content/public/test/test_browser_thread.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class BrowserThreadTest : public testing::Test { 18 class BrowserThreadTest : public testing::Test {
19 public: 19 public:
20 void Release() const { 20 void Release() const {
21 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 21 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
22 loop_.PostTask(FROM_HERE, MessageLoop::QuitClosure()); 22 loop_.PostTask(FROM_HERE, MessageLoop::QuitClosure());
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 ASSERT_TRUE(BrowserThread::PostTaskAndReply( 127 ASSERT_TRUE(BrowserThread::PostTaskAndReply(
128 BrowserThread::FILE, 128 BrowserThread::FILE,
129 FROM_HERE, 129 FROM_HERE,
130 base::Bind(&base::DoNothing), 130 base::Bind(&base::DoNothing),
131 base::Bind(&MessageLoop::Quit, 131 base::Bind(&MessageLoop::Quit,
132 base::Unretained(MessageLoop::current()->current())))); 132 base::Unretained(MessageLoop::current()->current()))));
133 MessageLoop::current()->Run(); 133 MessageLoop::current()->Run();
134 } 134 }
135 135
136 } 136 }
OLDNEW
« no previous file with comments | « chrome_frame/test/reliability/page_load_test.cc ('k') | content/browser/download/download_item_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698