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

Side by Side Diff: chrome/browser/chromeos/login/login_utils_browsertest.cc

Issue 16871010: Rewrite scoped_ptr<T>(NULL) to use the default ctor in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 "chrome/browser/chromeos/login/login_utils.h" 5 #include "chrome/browser/chromeos/login/login_utils.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 fake_io_thread_("fake_io_thread"), 162 fake_io_thread_("fake_io_thread"),
163 loop_(base::MessageLoop::TYPE_IO), 163 loop_(base::MessageLoop::TYPE_IO),
164 browser_process_(TestingBrowserProcess::GetGlobal()), 164 browser_process_(TestingBrowserProcess::GetGlobal()),
165 local_state_(browser_process_), 165 local_state_(browser_process_),
166 ui_thread_(BrowserThread::UI, &loop_), 166 ui_thread_(BrowserThread::UI, &loop_),
167 db_thread_(BrowserThread::DB, &loop_), 167 db_thread_(BrowserThread::DB, &loop_),
168 file_thread_(BrowserThread::FILE, &loop_), 168 file_thread_(BrowserThread::FILE, &loop_),
169 mock_input_method_manager_(NULL), 169 mock_input_method_manager_(NULL),
170 mock_async_method_caller_(NULL), 170 mock_async_method_caller_(NULL),
171 connector_(NULL), 171 connector_(NULL),
172 cryptohome_(NULL),
173 prepared_profile_(NULL) {} 172 prepared_profile_(NULL) {}
174 173
175 virtual void SetUp() OVERRIDE { 174 virtual void SetUp() OVERRIDE {
176 // This test is not a full blown InProcessBrowserTest, and doesn't have 175 // This test is not a full blown InProcessBrowserTest, and doesn't have
177 // all the usual threads running. However a lot of subsystems pulled from 176 // all the usual threads running. However a lot of subsystems pulled from
178 // ProfileImpl post to IO (usually from ProfileIOData), and DCHECK that 177 // ProfileImpl post to IO (usually from ProfileIOData), and DCHECK that
179 // those tasks were posted. Those tasks in turn depend on a lot of other 178 // those tasks were posted. Those tasks in turn depend on a lot of other
180 // components that aren't there during this test, so this kludge is used to 179 // components that aren't there during this test, so this kludge is used to
181 // have a running IO loop that doesn't really execute any tasks. 180 // have a running IO loop that doesn't really execute any tasks.
182 // 181 //
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 } 725 }
727 726
728 INSTANTIATE_TEST_CASE_P( 727 INSTANTIATE_TEST_CASE_P(
729 LoginUtilsBlockingLoginTestInstance, 728 LoginUtilsBlockingLoginTestInstance,
730 LoginUtilsBlockingLoginTest, 729 LoginUtilsBlockingLoginTest,
731 testing::Values(0, 1, 2, 3, 4, 5)); 730 testing::Values(0, 1, 2, 3, 4, 5));
732 731
733 } // namespace 732 } // namespace
734 733
735 } 734 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | chrome/browser/chromeos/net/network_portal_detector_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698