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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <map> 5 #include <map>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/ui/autofill/autofill_dialog_i18n_input.h" 23 #include "chrome/browser/ui/autofill/autofill_dialog_i18n_input.h"
24 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" 24 #include "chrome/browser/ui/autofill/autofill_dialog_view.h"
25 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" 25 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h"
26 #include "chrome/browser/ui/autofill/mock_address_validator.h" 26 #include "chrome/browser/ui/autofill/mock_address_validator.h"
27 #include "chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h" 27 #include "chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h"
28 #include "chrome/browser/ui/autofill/test_generated_credit_card_bubble_controlle r.h" 28 #include "chrome/browser/ui/autofill/test_generated_credit_card_bubble_controlle r.h"
29 #include "chrome/browser/webdata/web_data_service_factory.h" 29 #include "chrome/browser/webdata/web_data_service_factory.h"
30 #include "chrome/common/chrome_switches.h" 30 #include "chrome/common/chrome_switches.h"
31 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
32 #include "chrome/common/render_messages.h" 32 #include "chrome/common/render_messages.h"
33 #include "chrome/grit/generated_resources.h"
33 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 34 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
34 #include "chrome/test/base/scoped_testing_local_state.h" 35 #include "chrome/test/base/scoped_testing_local_state.h"
35 #include "chrome/test/base/testing_browser_process.h" 36 #include "chrome/test/base/testing_browser_process.h"
36 #include "chrome/test/base/testing_profile.h" 37 #include "chrome/test/base/testing_profile.h"
37 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" 38 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h"
38 #include "components/autofill/content/browser/wallet/full_wallet.h" 39 #include "components/autofill/content/browser/wallet/full_wallet.h"
39 #include "components/autofill/content/browser/wallet/gaia_account.h" 40 #include "components/autofill/content/browser/wallet/gaia_account.h"
40 #include "components/autofill/content/browser/wallet/instrument.h" 41 #include "components/autofill/content/browser/wallet/instrument.h"
41 #include "components/autofill/content/browser/wallet/mock_wallet_client.h" 42 #include "components/autofill/content/browser/wallet/mock_wallet_client.h"
42 #include "components/autofill/content/browser/wallet/wallet_address.h" 43 #include "components/autofill/content/browser/wallet/wallet_address.h"
43 #include "components/autofill/content/browser/wallet/wallet_service_url.h" 44 #include "components/autofill/content/browser/wallet/wallet_service_url.h"
44 #include "components/autofill/content/browser/wallet/wallet_test_util.h" 45 #include "components/autofill/content/browser/wallet/wallet_test_util.h"
45 #include "components/autofill/core/browser/autofill_metrics.h" 46 #include "components/autofill/core/browser/autofill_metrics.h"
46 #include "components/autofill/core/browser/autofill_test_utils.h" 47 #include "components/autofill/core/browser/autofill_test_utils.h"
47 #include "components/autofill/core/browser/test_personal_data_manager.h" 48 #include "components/autofill/core/browser/test_personal_data_manager.h"
48 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 49 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
49 #include "components/autofill/core/common/autofill_switches.h" 50 #include "components/autofill/core/common/autofill_switches.h"
50 #include "components/autofill/core/common/form_data.h" 51 #include "components/autofill/core/common/form_data.h"
51 #include "components/user_prefs/user_prefs.h" 52 #include "components/user_prefs/user_prefs.h"
52 #include "content/public/browser/web_contents.h" 53 #include "content/public/browser/web_contents.h"
53 #include "content/public/test/mock_render_process_host.h" 54 #include "content/public/test/mock_render_process_host.h"
54 #include "google_apis/gaia/google_service_auth_error.h" 55 #include "google_apis/gaia/google_service_auth_error.h"
55 #include "grit/component_scaled_resources.h" 56 #include "grit/component_scaled_resources.h"
56 #include "grit/components_strings.h" 57 #include "grit/components_strings.h"
57 #include "grit/generated_resources.h"
58 #include "testing/gmock/include/gmock/gmock.h" 58 #include "testing/gmock/include/gmock/gmock.h"
59 #include "testing/gtest/include/gtest/gtest.h" 59 #include "testing/gtest/include/gtest/gtest.h"
60 #include "third_party/libaddressinput/chromium/chrome_address_validator.h" 60 #include "third_party/libaddressinput/chromium/chrome_address_validator.h"
61 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_fi eld.h" 61 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_fi eld.h"
62 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_pr oblem.h" 62 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_pr oblem.h"
63 #include "ui/base/l10n/l10n_util.h" 63 #include "ui/base/l10n/l10n_util.h"
64 #include "ui/base/resource/resource_bundle.h" 64 #include "ui/base/resource/resource_bundle.h"
65 65
66 #if defined(OS_WIN) 66 #if defined(OS_WIN)
67 #include "ui/base/win/scoped_ole_initializer.h" 67 #include "ui/base/win/scoped_ole_initializer.h"
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 } 649 }
650 650
651 private: 651 private:
652 void FinishedCallback(AutofillClient::RequestAutocompleteResult result, 652 void FinishedCallback(AutofillClient::RequestAutocompleteResult result,
653 const base::string16& debug_message, 653 const base::string16& debug_message,
654 const FormStructure* form_structure) { 654 const FormStructure* form_structure) {
655 form_structure_ = form_structure; 655 form_structure_ = form_structure;
656 } 656 }
657 657
658 #if defined(OS_WIN) 658 #if defined(OS_WIN)
659 // http://crbug.com/227221 659 // http://crbug.com/227221
660 ui::ScopedOleInitializer ole_initializer_; 660 ui::ScopedOleInitializer ole_initializer_;
661 #endif 661 #endif
662 662
663 // The controller owns itself. 663 // The controller owns itself.
664 base::WeakPtr<TestAutofillDialogController> controller_; 664 base::WeakPtr<TestAutofillDialogController> controller_;
665 665
666 // Must outlive the controller. 666 // Must outlive the controller.
667 AutofillMetrics metric_logger_; 667 AutofillMetrics metric_logger_;
668 668
669 // Returned when the dialog closes successfully. 669 // Returned when the dialog closes successfully.
670 const FormStructure* form_structure_; 670 const FormStructure* form_structure_;
(...skipping 2990 matching lines...) Expand 10 before | Expand all | Expand 10 after
3661 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(2)->value); 3661 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(2)->value);
3662 EXPECT_EQ(ADDRESS_HOME_COUNTRY, 3662 EXPECT_EQ(ADDRESS_HOME_COUNTRY,
3663 form_structure()->field(3)->Type().GetStorableType()); 3663 form_structure()->field(3)->Type().GetStorableType());
3664 EXPECT_EQ(ASCIIToUTF16("US"), form_structure()->field(3)->value); 3664 EXPECT_EQ(ASCIIToUTF16("US"), form_structure()->field(3)->value);
3665 EXPECT_EQ(ADDRESS_HOME_COUNTRY, 3665 EXPECT_EQ(ADDRESS_HOME_COUNTRY,
3666 form_structure()->field(4)->Type().GetStorableType()); 3666 form_structure()->field(4)->Type().GetStorableType());
3667 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(4)->value); 3667 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(4)->value);
3668 } 3668 }
3669 3669
3670 } // namespace autofill 3670 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_models.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698