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

Side by Side Diff: chrome/browser/ui/shell_dialogs_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/file_path.h" 5 #include "base/file_path.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/string16.h" 7 #include "base/string16.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
10 #include "chrome/browser/prefs/browser_prefs.h" 10 #include "chrome/browser/prefs/browser_prefs.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/shell_dialogs.h" 12 #include "chrome/browser/ui/shell_dialogs.h"
13 #include "chrome/test/base/testing_browser_process_test.h"
13 #include "chrome/test/base/testing_pref_service.h" 14 #include "chrome/test/base/testing_pref_service.h"
14 #include "chrome/test/testing_browser_process_test.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 class FileSelectionUser : public SelectFileDialog::Listener { 18 class FileSelectionUser : public SelectFileDialog::Listener {
19 public: 19 public:
20 FileSelectionUser() 20 FileSelectionUser()
21 : file_selection_initialisation_in_progress(false) { 21 : file_selection_initialisation_in_progress(false) {
22 } 22 }
23 23
24 ~FileSelectionUser() { 24 ~FileSelectionUser() {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 scoped_ptr<FileSelectionUser> file_selection_user(new FileSelectionUser()); 79 scoped_ptr<FileSelectionUser> file_selection_user(new FileSelectionUser());
80 80
81 // Disallow file-selection dialogs. 81 // Disallow file-selection dialogs.
82 local_state_.Get()->SetManagedPref( 82 local_state_.Get()->SetManagedPref(
83 prefs::kAllowFileSelectionDialogs, 83 prefs::kAllowFileSelectionDialogs,
84 Value::CreateBooleanValue(false)); 84 Value::CreateBooleanValue(false));
85 85
86 file_selection_user->StartFileSelection(); 86 file_selection_user->StartFileSelection();
87 } 87 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698