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

Side by Side Diff: components/autofill/core/browser/autofill_manager_unittest.cc

Issue 190213003: Eliminate BrowserThread dependency from WebDataAutofillServiceTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <algorithm> 5 #include <algorithm>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 17 matching lines...) Expand all
28 #include "components/autofill/core/browser/personal_data_manager.h" 28 #include "components/autofill/core/browser/personal_data_manager.h"
29 #include "components/autofill/core/browser/popup_item_ids.h" 29 #include "components/autofill/core/browser/popup_item_ids.h"
30 #include "components/autofill/core/browser/test_autofill_driver.h" 30 #include "components/autofill/core/browser/test_autofill_driver.h"
31 #include "components/autofill/core/browser/test_autofill_external_delegate.h" 31 #include "components/autofill/core/browser/test_autofill_external_delegate.h"
32 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" 32 #include "components/autofill/core/browser/test_autofill_manager_delegate.h"
33 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 33 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
34 #include "components/autofill/core/common/autofill_pref_names.h" 34 #include "components/autofill/core/common/autofill_pref_names.h"
35 #include "components/autofill/core/common/form_data.h" 35 #include "components/autofill/core/common/form_data.h"
36 #include "components/autofill/core/common/form_field_data.h" 36 #include "components/autofill/core/common/form_field_data.h"
37 #include "components/autofill/core/common/forms_seen_state.h" 37 #include "components/autofill/core/common/forms_seen_state.h"
38 #include "components/user_prefs/user_prefs.h"
39 #include "grit/component_strings.h" 38 #include "grit/component_strings.h"
40 #include "testing/gmock/include/gmock/gmock.h" 39 #include "testing/gmock/include/gmock/gmock.h"
41 #include "testing/gtest/include/gtest/gtest.h" 40 #include "testing/gtest/include/gtest/gtest.h"
42 #include "ui/base/l10n/l10n_util.h" 41 #include "ui/base/l10n/l10n_util.h"
43 #include "ui/gfx/rect.h" 42 #include "ui/gfx/rect.h"
44 #include "url/gurl.h" 43 #include "url/gurl.h"
45 44
46 using base::ASCIIToUTF16; 45 using base::ASCIIToUTF16;
47 using base::UTF8ToUTF16; 46 using base::UTF8ToUTF16;
48 using testing::_; 47 using testing::_;
(...skipping 2831 matching lines...) Expand 10 before | Expand all | Expand 10 after
2880 test::CreateTestAddressFormData(&form); 2879 test::CreateTestAddressFormData(&form);
2881 std::vector<FormData> forms(1, form); 2880 std::vector<FormData> forms(1, form);
2882 FormsSeen(forms); 2881 FormsSeen(forms);
2883 const FormFieldData& field = form.fields[0]; 2882 const FormFieldData& field = form.fields[0];
2884 GetAutofillSuggestions(form, field); // should call the delegate's OnQuery() 2883 GetAutofillSuggestions(form, field); // should call the delegate's OnQuery()
2885 2884
2886 EXPECT_TRUE(external_delegate_->on_query_seen()); 2885 EXPECT_TRUE(external_delegate_->on_query_seen());
2887 } 2886 }
2888 2887
2889 } // namespace autofill 2888 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698