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

Unified Diff: components/payments/core/address_normalizer_unittest.cc

Issue 2713033004: Layered component for web payments (Closed)
Patch Set: Rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/payments/core/address_normalizer.cc ('k') | components/payments/core/currency_formatter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/address_normalizer_unittest.cc
diff --git a/components/payments/address_normalizer_unittest.cc b/components/payments/core/address_normalizer_unittest.cc
similarity index 95%
rename from components/payments/address_normalizer_unittest.cc
rename to components/payments/core/address_normalizer_unittest.cc
index 58c268b4d4d8979948f321f828eb58dea1254c5b..0d2f3fae5fcc4575f5afa6b73369105abc63df4c 100644
--- a/components/payments/address_normalizer_unittest.cc
+++ b/components/payments/core/address_normalizer_unittest.cc
@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/payments/address_normalizer.h"
+#include "components/payments/core/address_normalizer.h"
-#include "base/macros.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_task_scheduler.h"
@@ -18,6 +17,7 @@
namespace payments {
namespace {
+using ::autofill::AutofillProfile;
using ::i18n::addressinput::NullStorage;
using ::i18n::addressinput::Source;
using ::i18n::addressinput::Storage;
@@ -47,6 +47,8 @@ class NormalizationDelegate : public AddressNormalizer::Delegate {
private:
bool normalized_called_;
bool not_normalized_called_;
+
+ DISALLOW_COPY_AND_ASSIGN(NormalizationDelegate);
};
// Used to load region rules for this test.
@@ -64,6 +66,9 @@ class ChromiumTestdataSource : public TestdataSource {
"{\"id\":\"data/US\",\"key\":\"US\",\"name\":\"UNITED "
"STATES\",\"lang\":\"en\",\"languages\":\"en\"}}"));
}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromiumTestdataSource);
};
// A test subclass of the AddressNormalizer. Used to simulate rules not being
@@ -89,6 +94,8 @@ class TestAddressNormalizer : public AddressNormalizer {
private:
bool should_load_rules_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestAddressNormalizer);
};
} // namespace
« no previous file with comments | « components/payments/core/address_normalizer.cc ('k') | components/payments/core/currency_formatter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698