| Index: chrome/test/base/ui_test_utils.cc
|
| diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
|
| index bca013bb75a9f472b054d5f1647b23d37a84270b..b60ecf9323e138be63563ad3a569500bca44485e 100644
|
| --- a/chrome/test/base/ui_test_utils.cc
|
| +++ b/chrome/test/base/ui_test_utils.cc
|
| @@ -16,6 +16,7 @@
|
| #include "base/files/file_util.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/memory/ref_counted_memory.h"
|
| #include "base/path_service.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| @@ -155,7 +156,12 @@ void NavigateToURL(chrome::NavigateParams* params) {
|
| void NavigateToURLWithPost(Browser* browser, const GURL& url) {
|
| chrome::NavigateParams params(browser, url,
|
| ui::PAGE_TRANSITION_FORM_SUBMIT);
|
| +
|
| + std::string post_data("test=body");
|
| + params.browser_initiated_post_data =
|
| + base::RefCountedString::TakeString(&post_data);
|
| params.uses_post = true;
|
| +
|
| NavigateToURL(¶ms);
|
| }
|
|
|
|
|