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..488771b867bf552e45a57a7e40fbba69c941fefe 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" |
@@ -151,9 +152,13 @@ class FileChooserDelegate : public WebContentsDelegate { |
// Whether the file dialog was shown. |
bool file_chosen() { return file_chosen_; } |
+ // Copy of the params passed to RunFileChooser. |
+ FileChooserParams params() { return params_; } |
kinuko
2016/10/26 02:35:01
nit: make it a const method?
jsbell
2016/10/26 17:21:43
Done.
|
+ |
private: |
base::FilePath file_; |
bool file_chosen_; |
+ FileChooserParams params_; |
}; |
// This class is a TestNavigationManager that only monitors notifications within |