Skip to content

Commit

Permalink
In components/autofill, move browser/wallet/ to content/browser/wallet/
Browse files Browse the repository at this point in the history
This change is part of moving components/autofill into its eventual structure
as a layered component. As part of this move, this CL renames the
autofill_test_util target (which contains only util code for testing wallet) to
autofill_content_test_util.

TBR=joi, thakis
BUG=247015

Review URL: https://chromiumcodereview.appspot.com/16579003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205259 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
blundell@chromium.org committed Jun 10, 2013
1 parent a38c64e commit 0407b4b
Show file tree
Hide file tree
Showing 46 changed files with 182 additions and 182 deletions.
2 changes: 1 addition & 1 deletion chrome/browser/ui/autofill/autofill_dialog_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "base/string16.h"
#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
#include "components/autofill/browser/field_types.h"
#include "components/autofill/browser/wallet/required_action.h"
#include "components/autofill/content/browser/wallet/required_action.h"
#include "ui/base/range/range.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/image/image.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include "components/autofill/browser/autofill_metrics.h"
#include "components/autofill/browser/test_personal_data_manager.h"
#include "components/autofill/browser/validation.h"
#include "components/autofill/browser/wallet/wallet_test_util.h"
#include "components/autofill/common/autofill_switches.h"
#include "components/autofill/common/form_data.h"
#include "components/autofill/common/form_field_data.h"
#include "components/autofill/content/browser/wallet/wallet_test_util.h"
#include "content/public/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"

Expand Down
12 changes: 6 additions & 6 deletions chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
#include "components/autofill/browser/personal_data_manager.h"
#include "components/autofill/browser/phone_number_i18n.h"
#include "components/autofill/browser/validation.h"
#include "components/autofill/browser/wallet/full_wallet.h"
#include "components/autofill/browser/wallet/instrument.h"
#include "components/autofill/browser/wallet/wallet_address.h"
#include "components/autofill/browser/wallet/wallet_items.h"
#include "components/autofill/browser/wallet/wallet_service_url.h"
#include "components/autofill/browser/wallet/wallet_signin_helper.h"
#include "components/autofill/common/form_data.h"
#include "components/autofill/content/browser/risk/fingerprint.h"
#include "components/autofill/content/browser/risk/proto/fingerprint.pb.h"
#include "components/autofill/content/browser/wallet/full_wallet.h"
#include "components/autofill/content/browser/wallet/instrument.h"
#include "components/autofill/content/browser/wallet/wallet_address.h"
#include "components/autofill/content/browser/wallet/wallet_items.h"
#include "components/autofill/content/browser/wallet/wallet_service_url.h"
#include "components/autofill/content/browser/wallet/wallet_signin_helper.h"
#include "components/user_prefs/pref_registry_syncable.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/geolocation_provider.h"
Expand Down
8 changes: 4 additions & 4 deletions chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
#include "components/autofill/browser/form_structure.h"
#include "components/autofill/browser/personal_data_manager.h"
#include "components/autofill/browser/personal_data_manager_observer.h"
#include "components/autofill/browser/wallet/wallet_client.h"
#include "components/autofill/browser/wallet/wallet_client_delegate.h"
#include "components/autofill/browser/wallet/wallet_items.h"
#include "components/autofill/browser/wallet/wallet_signin_helper_delegate.h"
#include "components/autofill/content/browser/wallet/wallet_client.h"
#include "components/autofill/content/browser/wallet/wallet_client_delegate.h"
#include "components/autofill/content/browser/wallet/wallet_items.h"
#include "components/autofill/content/browser/wallet/wallet_signin_helper_delegate.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/common/ssl_status.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
#include "components/autofill/browser/autofill_common_test.h"
#include "components/autofill/browser/autofill_metrics.h"
#include "components/autofill/browser/test_personal_data_manager.h"
#include "components/autofill/browser/wallet/full_wallet.h"
#include "components/autofill/browser/wallet/instrument.h"
#include "components/autofill/browser/wallet/wallet_address.h"
#include "components/autofill/browser/wallet/wallet_client.h"
#include "components/autofill/browser/wallet/wallet_service_url.h"
#include "components/autofill/browser/wallet/wallet_test_util.h"
#include "components/autofill/common/autofill_switches.h"
#include "components/autofill/common/form_data.h"
#include "components/autofill/content/browser/risk/proto/fingerprint.pb.h"
#include "components/autofill/content/browser/wallet/full_wallet.h"
#include "components/autofill/content/browser/wallet/instrument.h"
#include "components/autofill/content/browser/wallet/wallet_address.h"
#include "components/autofill/content/browser/wallet/wallet_client.h"
#include "components/autofill/content/browser/wallet/wallet_service_url.h"
#include "components/autofill/content/browser/wallet/wallet_test_util.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "content/public/test/web_contents_tester.h"
Expand Down
6 changes: 3 additions & 3 deletions chrome/browser/ui/autofill/data_model_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include "components/autofill/browser/credit_card.h"
#include "components/autofill/browser/form_structure.h"
#include "components/autofill/browser/validation.h"
#include "components/autofill/browser/wallet/full_wallet.h"
#include "components/autofill/browser/wallet/wallet_address.h"
#include "components/autofill/browser/wallet/wallet_items.h"
#include "components/autofill/content/browser/wallet/full_wallet.h"
#include "components/autofill/content/browser/wallet/wallet_address.h"
#include "components/autofill/content/browser/wallet/wallet_items.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image.h"

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/ui/autofill/data_model_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "base/string16.h"
#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
#include "components/autofill/browser/field_types.h"
#include "components/autofill/browser/wallet/wallet_items.h"
#include "components/autofill/content/browser/wallet/wallet_items.h"

namespace gfx {
class Image;
Expand Down
4 changes: 2 additions & 2 deletions chrome/browser/ui/autofill/data_model_wrapper_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include "components/autofill/browser/autofill_profile.h"
#include "components/autofill/browser/credit_card.h"
#include "components/autofill/browser/field_types.h"
#include "components/autofill/browser/wallet/wallet_items.h"
#include "components/autofill/browser/wallet/wallet_test_util.h"
#include "components/autofill/content/browser/wallet/wallet_items.h"
#include "components/autofill/content/browser/wallet/wallet_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace autofill {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "base/strings/sys_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
#include "components/autofill/browser/wallet/wallet_service_url.h"
#include "components/autofill/content/browser/wallet/wallet_service_url.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/ui/views/autofill/autofill_dialog_views.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "chrome/browser/ui/autofill/autofill_dialog_sign_in_delegate.h"
#include "chrome/browser/ui/views/constrained_window_views.h"
#include "components/autofill/browser/autofill_type.h"
#include "components/autofill/browser/wallet/wallet_service_url.h"
#include "components/autofill/content/browser/wallet/wallet_service_url.h"
#include "components/web_modal/web_contents_modal_dialog_manager.h"
#include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
#include "content/public/browser/native_web_keyboard_event.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/chrome_tests.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@
'../base/base.gyp:base_i18n',
'../base/base.gyp:test_support_base',
'../components/components.gyp:autofill_content_risk_proto',
'../components/components.gyp:autofill_test_util',
'../components/components.gyp:autofill_content_test_util',
'../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
'../net/net.gyp:net',
'../net/net.gyp:net_test_support',
Expand Down
18 changes: 9 additions & 9 deletions chrome/chrome_tests_unit.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@
'<@(chromium_child_dependencies)',
# 2) test-specific support libraries:
'../base/base.gyp:test_support_base',
'../components/components.gyp:autofill_test_util',
'../media/media.gyp:media_test_support',
'../net/net.gyp:net',
'../net/net.gyp:net_test_support',
Expand Down Expand Up @@ -1775,14 +1774,14 @@
'../components/autofill/browser/phone_number_unittest.cc',
'../components/autofill/browser/phone_number_i18n_unittest.cc',
'../components/autofill/browser/validation_unittest.cc',
'../components/autofill/browser/wallet/encryption_escrow_client_unittest.cc',
'../components/autofill/browser/wallet/full_wallet_unittest.cc',
'../components/autofill/browser/wallet/instrument_unittest.cc',
'../components/autofill/browser/wallet/wallet_address_unittest.cc',
'../components/autofill/browser/wallet/wallet_client_unittest.cc',
'../components/autofill/browser/wallet/wallet_items_unittest.cc',
'../components/autofill/browser/wallet/wallet_service_url_unittest.cc',
'../components/autofill/browser/wallet/wallet_signin_helper_unittest.cc',
'../components/autofill/content/browser/wallet/encryption_escrow_client_unittest.cc',
'../components/autofill/content/browser/wallet/full_wallet_unittest.cc',
'../components/autofill/content/browser/wallet/instrument_unittest.cc',
'../components/autofill/content/browser/wallet/wallet_address_unittest.cc',
'../components/autofill/content/browser/wallet/wallet_client_unittest.cc',
'../components/autofill/content/browser/wallet/wallet_items_unittest.cc',
'../components/autofill/content/browser/wallet/wallet_service_url_unittest.cc',
'../components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc',

# TODO(caitkp): Move to //components/components.gypi once
# remaining dependencies back to //chrome are eliminated.
Expand Down Expand Up @@ -1854,6 +1853,7 @@
['OS!="ios"', {
'dependencies': [
'common/extensions/api/api.gyp:api',
'../components/components.gyp:autofill_content_test_util',
'../components/component_resources.gyp:component_resources',
'../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
'../gpu/gpu.gyp:gpu_unittest_utils',
Expand Down
60 changes: 30 additions & 30 deletions components/autofill.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@
'autofill/browser/autofill_regex_constants.cc.utf8'],
}],
},
{
'target_name': 'autofill_test_util',
'type': 'static_library',
'sources': [
'autofill/browser/wallet/wallet_test_util.cc',
'autofill/browser/wallet/wallet_test_util.h',
],
'include_dirs': [ '..' ],
},
],
'conditions': [
['OS != "ios"', {
Expand Down Expand Up @@ -211,26 +202,6 @@
'autofill/browser/state_names.h',
'autofill/browser/validation.cc',
'autofill/browser/validation.h',
'autofill/browser/wallet/encryption_escrow_client.cc',
'autofill/browser/wallet/encryption_escrow_client.h',
'autofill/browser/wallet/encryption_escrow_client_observer.h',
'autofill/browser/wallet/full_wallet.cc',
'autofill/browser/wallet/full_wallet.h',
'autofill/browser/wallet/instrument.cc',
'autofill/browser/wallet/instrument.h',
'autofill/browser/wallet/required_action.cc',
'autofill/browser/wallet/required_action.h',
'autofill/browser/wallet/wallet_address.cc',
'autofill/browser/wallet/wallet_address.h',
'autofill/browser/wallet/wallet_client.cc',
'autofill/browser/wallet/wallet_client.h',
'autofill/browser/wallet/wallet_client_delegate.h',
'autofill/browser/wallet/wallet_items.cc',
'autofill/browser/wallet/wallet_items.h',
'autofill/browser/wallet/wallet_service_url.cc',
'autofill/browser/wallet/wallet_service_url.h',
'autofill/browser/wallet/wallet_signin_helper.cc',
'autofill/browser/wallet/wallet_signin_helper.h',
'autofill/browser/webdata/autofill_change.cc',
'autofill/browser/webdata/autofill_change.h',
'autofill/browser/webdata/autofill_entry.cc',
Expand Down Expand Up @@ -266,7 +237,16 @@
},
'includes': [ '../build/protoc.gypi' ]
},
{
{
'target_name': 'autofill_content_test_util',
'type': 'static_library',
'sources': [
'autofill/content/browser/wallet/wallet_test_util.cc',
'autofill/content/browser/wallet/wallet_test_util.h',
],
'include_dirs': [ '..' ],
},
{
'target_name': 'autofill_content_browser',
'type': 'static_library',
'include_dirs': [
Expand Down Expand Up @@ -302,6 +282,26 @@
'sources': [
'autofill/content/browser/risk/fingerprint.cc',
'autofill/content/browser/risk/fingerprint.h',
'autofill/content/browser/wallet/encryption_escrow_client.cc',
'autofill/content/browser/wallet/encryption_escrow_client.h',
'autofill/content/browser/wallet/encryption_escrow_client_observer.h',
'autofill/content/browser/wallet/full_wallet.cc',
'autofill/content/browser/wallet/full_wallet.h',
'autofill/content/browser/wallet/instrument.cc',
'autofill/content/browser/wallet/instrument.h',
'autofill/content/browser/wallet/required_action.cc',
'autofill/content/browser/wallet/required_action.h',
'autofill/content/browser/wallet/wallet_address.cc',
'autofill/content/browser/wallet/wallet_address.h',
'autofill/content/browser/wallet/wallet_client.cc',
'autofill/content/browser/wallet/wallet_client.h',
'autofill/content/browser/wallet/wallet_client_delegate.h',
'autofill/content/browser/wallet/wallet_items.cc',
'autofill/content/browser/wallet/wallet_items.h',
'autofill/content/browser/wallet/wallet_service_url.cc',
'autofill/content/browser/wallet/wallet_service_url.h',
'autofill/content/browser/wallet/wallet_signin_helper.cc',
'autofill/content/browser/wallet/wallet_signin_helper.h',
],

# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
Expand Down
4 changes: 2 additions & 2 deletions components/autofill/browser/autocheckout_request_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

#include "base/supports_user_data.h"
#include "components/autofill/browser/autofill_metrics.h"
#include "components/autofill/browser/wallet/wallet_client.h"
#include "components/autofill/browser/wallet/wallet_client_delegate.h"
#include "components/autofill/common/autocheckout_status.h"
#include "components/autofill/content/browser/wallet/wallet_client.h"
#include "components/autofill/content/browser/wallet/wallet_client_delegate.h"
#include "googleurl/src/gurl.h"

namespace content {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/autofill/browser/wallet/encryption_escrow_client.h"
#include "components/autofill/content/browser/wallet/encryption_escrow_client.h"

#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/stringprintf.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/browser/wallet/encryption_escrow_client_observer.h"
#include "components/autofill/browser/wallet/instrument.h"
#include "components/autofill/browser/wallet/wallet_service_url.h"
#include "components/autofill/content/browser/wallet/encryption_escrow_client_observer.h"
#include "components/autofill/content/browser/wallet/instrument.h"
#include "components/autofill/content/browser/wallet/wallet_service_url.h"
#include "googleurl/src/gurl.h"
#include "net/base/escape.h"
#include "net/http/http_status_code.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_H_
#define COMPONENTS_AUTOFILL_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_H_
#ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_H_
#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_H_

#include <string>
#include <vector>
Expand Down Expand Up @@ -97,4 +97,4 @@ class EncryptionEscrowClient : public net::URLFetcherDelegate {
} // namespace wallet
} // namespace autofill

#endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_H_
#endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
#define COMPONENTS_AUTOFILL_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
#ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_

#include <string>

Expand Down Expand Up @@ -50,4 +50,4 @@ class EncryptionEscrowClientObserver {
} // namespace wallet
} // namespace autofill

#endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
#endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

#include "base/memory/scoped_ptr.h"
#include "chrome/test/base/testing_profile.h"
#include "components/autofill/browser/wallet/encryption_escrow_client.h"
#include "components/autofill/browser/wallet/encryption_escrow_client_observer.h"
#include "components/autofill/browser/wallet/instrument.h"
#include "components/autofill/browser/wallet/wallet_test_util.h"
#include "components/autofill/content/browser/wallet/encryption_escrow_client.h"
#include "components/autofill/content/browser/wallet/encryption_escrow_client_observer.h"
#include "components/autofill/content/browser/wallet/instrument.h"
#include "components/autofill/content/browser/wallet/wallet_test_util.h"
#include "content/public/test/test_browser_thread.h"
#include "googleurl/src/gurl.h"
#include "net/base/net_errors.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/autofill/browser/wallet/full_wallet.h"
#include "components/autofill/content/browser/wallet/full_wallet.h"

#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_FULL_WALLET_H_
#define COMPONENTS_AUTOFILL_BROWSER_WALLET_FULL_WALLET_H_
#ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_
#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_

#include <string>
#include <vector>

#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "components/autofill/browser/wallet/required_action.h"
#include "components/autofill/browser/wallet/wallet_address.h"
#include "components/autofill/content/browser/wallet/required_action.h"
#include "components/autofill/content/browser/wallet/wallet_address.h"

namespace base {
class DictionaryValue;
Expand Down Expand Up @@ -127,4 +127,4 @@ class FullWallet {
} // namespace wallet
} // namespace autofill

#endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_FULL_WALLET_H_
#endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_FULL_WALLET_H_
Loading

0 comments on commit 0407b4b

Please sign in to comment.