summaryrefslogtreecommitdiff
path: root/android/PhoneNumberUtilsTest.cpp
diff options
context:
space:
mode:
authorDaisuke Miyakawa <dmiyakawa@google.com>2009-09-19 19:19:53 -0700
committerDaisuke Miyakawa <dmiyakawa@google.com>2009-09-20 13:32:06 -0700
commit948a119c94f8b69760437c7d1e784b498cd9b766 (patch)
treefd7d49dbfa47e5017ffed31867a35e747a59c925 /android/PhoneNumberUtilsTest.cpp
parentb3b8a9dac508afdbac8de93a31a752c60e34e254 (diff)
Revert the default phone number comparation algorithm.
Now developers have to explicitly set the third argument of PHONE_NUMBERS_COMPARE() into 1, when they want to use "strict" phone number comparation algorithm, which was used in Donut. In default, PHONE_NUMBER_COMPARE() now uses "loose" phone number comparation algorithm, which had been used in Cupcake. Internal issue id: 1892808
Diffstat (limited to 'android/PhoneNumberUtilsTest.cpp')
-rw-r--r--android/PhoneNumberUtilsTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/PhoneNumberUtilsTest.cpp b/android/PhoneNumberUtilsTest.cpp
index 4d9809d..700dca3 100644
--- a/android/PhoneNumberUtilsTest.cpp
+++ b/android/PhoneNumberUtilsTest.cpp
@@ -47,12 +47,12 @@ using namespace android;
})
#define EXPECT_EQ(input1, input2) \
- EXPECT(phone_number_compare, (input1), (input2), true, \
+ EXPECT(phone_number_compare_strict, (input1), (input2), true, \
(total), (error))
#define EXPECT_NE(input1, input2) \
- EXPECT(phone_number_compare, (input1), (input2), false, \
+ EXPECT(phone_number_compare_strict, (input1), (input2), false, \
(total), (error))
int main() {