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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents_iterator_unittest.cc

Issue 12253004: Moving last generic Prefs implementation files to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR Created 7 years, 10 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/ui/tab_contents/tab_contents_iterator.h" 5 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h"
6 6
7 #include "base/prefs/pref_registry_simple.h" 7 #include "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/testing_pref_service.h"
8 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/browser_shutdown.h" 10 #include "chrome/browser/browser_shutdown.h"
10 #include "chrome/browser/profiles/profile_manager.h" 11 #include "chrome/browser/profiles/profile_manager.h"
11 #include "chrome/browser/ui/browser_commands.h" 12 #include "chrome/browser/ui/browser_commands.h"
12 #include "chrome/browser/ui/browser_list_impl.h" 13 #include "chrome/browser/ui/browser_list_impl.h"
13 #include "chrome/browser/ui/host_desktop.h" 14 #include "chrome/browser/ui/host_desktop.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" 15 #include "chrome/browser/ui/tabs/tab_strip_model.h"
15 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
16 #include "chrome/test/base/browser_with_test_window_test.h" 17 #include "chrome/test/base/browser_with_test_window_test.h"
17 #include "chrome/test/base/test_browser_window.h" 18 #include "chrome/test/base/test_browser_window.h"
18 #include "chrome/test/base/testing_browser_process.h" 19 #include "chrome/test/base/testing_browser_process.h"
19 #include "chrome/test/base/testing_pref_service.h"
20 20
21 typedef BrowserWithTestWindowTest BrowserListTest; 21 typedef BrowserWithTestWindowTest BrowserListTest;
22 22
23 namespace { 23 namespace {
24 24
25 // Helper function to iterate and count all the tabs. 25 // Helper function to iterate and count all the tabs.
26 size_t CountAllTabs() { 26 size_t CountAllTabs() {
27 size_t count = 0; 27 size_t count = 0;
28 for (TabContentsIterator iterator; !iterator.done(); iterator.Next()) 28 for (TabContentsIterator iterator; !iterator.done(); iterator.Next())
29 ++count; 29 ++count;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 testing_browser_process->SetProfileManager(profile_manager); 196 testing_browser_process->SetProfileManager(profile_manager);
197 197
198 browser::AttemptRestart(); 198 browser::AttemptRestart();
199 // Cancel the effects of us calling browser::AttemptRestart. Otherwise tests 199 // Cancel the effects of us calling browser::AttemptRestart. Otherwise tests
200 // ran after this one will fail. 200 // ran after this one will fail.
201 browser_shutdown::SetTryingToQuit(false); 201 browser_shutdown::SetTryingToQuit(false);
202 202
203 EXPECT_TRUE(testing_pref_service.GetBoolean(prefs::kWasRestarted)); 203 EXPECT_TRUE(testing_pref_service.GetBoolean(prefs::kWasRestarted));
204 testing_browser_process->SetLocalState(NULL); 204 testing_browser_process->SetLocalState(NULL);
205 } 205 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_names_io_thread_unittest.cc ('k') | chrome/browser/ui/toolbar/action_box_menu_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698