| Index: chrome/renderer/autofill/form_autofill_browsertest.cc
|
| diff --git a/chrome/renderer/autofill/form_autofill_browsertest.cc b/chrome/renderer/autofill/form_autofill_browsertest.cc
|
| index 76873331b0c1b96fc9e7839f30b022b84ea648c1..bc7a762c34ccec4df5d5c9ae475212bc877cb02c 100644
|
| --- a/chrome/renderer/autofill/form_autofill_browsertest.cc
|
| +++ b/chrome/renderer/autofill/form_autofill_browsertest.cc
|
| @@ -13,7 +13,6 @@
|
| #include "components/autofill/content/renderer/form_cache.h"
|
| #include "components/autofill/core/common/autofill_data_validation.h"
|
| #include "components/autofill/core/common/form_data.h"
|
| -#include "components/autofill/core/common/web_element_descriptor.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/WebKit/public/platform/WebString.h"
|
| #include "third_party/WebKit/public/platform/WebVector.h"
|
| @@ -56,6 +55,20 @@ struct AutofillFieldCase {
|
| // or Preview.
|
| };
|
|
|
| +struct WebElementDescriptor {
|
| + enum RetrievalMethod {
|
| + CSS_SELECTOR,
|
| + ID,
|
| + NONE,
|
| + };
|
| +
|
| + // Information to retrieve element with.
|
| + std::string descriptor;
|
| +
|
| + // Which retrieval method to use.
|
| + RetrievalMethod retrieval_method = NONE;
|
| +};
|
| +
|
| const char kFormHtml[] =
|
| "<FORM name='TestForm' action='http://buh.com' method='post'>"
|
| " <INPUT type='text' id='firstname'/>"
|
|
|