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

Side by Side Diff: chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc

Issue 15994002: Move more browser-specific webkit/fileapi code to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/views/select_file_dialog_extension.h" 5 #include "chrome/browser/ui/views/select_file_dialog_extension.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/ui/browser_window.h" 21 #include "chrome/browser/ui/browser_window.h"
22 #include "chrome/common/chrome_paths.h" 22 #include "chrome/common/chrome_paths.h"
23 #include "content/public/browser/browser_context.h" 23 #include "content/public/browser/browser_context.h"
24 #include "content/public/browser/notification_service.h" 24 #include "content/public/browser/notification_service.h"
25 #include "content/public/browser/notification_types.h" 25 #include "content/public/browser/notification_types.h"
26 #include "content/public/browser/render_view_host.h" 26 #include "content/public/browser/render_view_host.h"
27 #include "content/public/browser/storage_partition.h" 27 #include "content/public/browser/storage_partition.h"
28 #include "content/public/test/test_utils.h" 28 #include "content/public/test/test_utils.h"
29 #include "ui/shell_dialogs/select_file_dialog.h" 29 #include "ui/shell_dialogs/select_file_dialog.h"
30 #include "ui/shell_dialogs/selected_file_info.h" 30 #include "ui/shell_dialogs/selected_file_info.h"
31 #include "webkit/fileapi/external_mount_points.h" 31 #include "webkit/browser/fileapi/external_mount_points.h"
32 32
33 using content::BrowserContext; 33 using content::BrowserContext;
34 34
35 // Mock listener used by test below. 35 // Mock listener used by test below.
36 class MockSelectFileDialogListener : public ui::SelectFileDialog::Listener { 36 class MockSelectFileDialogListener : public ui::SelectFileDialog::Listener {
37 public: 37 public:
38 MockSelectFileDialogListener() 38 MockSelectFileDialogListener()
39 : file_selected_(false), 39 : file_selected_(false),
40 canceled_(false), 40 canceled_(false),
41 params_(NULL) { 41 params_(NULL) {
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 ASSERT_FALSE(second_dialog_->IsRunning(owning_window)); 364 ASSERT_FALSE(second_dialog_->IsRunning(owning_window));
365 365
366 // Click cancel button. 366 // Click cancel button.
367 CloseDialog(DIALOG_BTN_CANCEL, owning_window); 367 CloseDialog(DIALOG_BTN_CANCEL, owning_window);
368 368
369 // Listener should have been informed of the cancellation. 369 // Listener should have been informed of the cancellation.
370 ASSERT_FALSE(listener_->file_selected()); 370 ASSERT_FALSE(listener_->file_selected());
371 ASSERT_TRUE(listener_->canceled()); 371 ASSERT_TRUE(listener_->canceled());
372 ASSERT_EQ(this, listener_->params()); 372 ASSERT_EQ(this, listener_->params());
373 } 373 }
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/drive_metadata_store_unittest.cc ('k') | content/browser/browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698