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

Unified Diff: content/test/content_browser_test_utils_internal.h

Issue 2446743002: Remove WebFileChooserParams::initialValue (Closed)
Patch Set: Split test into own file; const sprinkles Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/content_browser_test_utils_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_browser_test_utils_internal.h
diff --git a/content/test/content_browser_test_utils_internal.h b/content/test/content_browser_test_utils_internal.h
index d9f756dfe66289524b21679dc0b594485e0f02a1..1ff94ab0e03053e2b9eb27a84f7eade9527a87c8 100644
--- a/content/test/content_browser_test_utils_internal.h
+++ b/content/test/content_browser_test_utils_internal.h
@@ -19,6 +19,7 @@
#include "cc/surfaces/surface_id.h"
#include "content/public/browser/resource_dispatcher_host_delegate.h"
#include "content/public/browser/web_contents_delegate.h"
+#include "content/public/common/file_chooser_params.h"
#include "content/public/test/browser_test_utils.h"
#include "url/gurl.h"
@@ -149,11 +150,15 @@ class FileChooserDelegate : public WebContentsDelegate {
const FileChooserParams& params) override;
// Whether the file dialog was shown.
- bool file_chosen() { return file_chosen_; }
+ bool file_chosen() const { return file_chosen_; }
+
+ // Copy of the params passed to RunFileChooser.
+ FileChooserParams params() const { return params_; }
private:
base::FilePath file_;
bool file_chosen_;
+ FileChooserParams params_;
};
// This class is a TestNavigationManager that only monitors notifications within
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/content_browser_test_utils_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698