X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Flibaddressinput%2Fsrc%2Fcpp%2Ftest%2Fregion_data_constants_test.cc;h=63e6ae23e88920ed412a5bf250ac1392121d75d0;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=89424454cb36a65571e115c07591c09b1c116086;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/libaddressinput/src/cpp/test/region_data_constants_test.cc b/src/third_party/libaddressinput/src/cpp/test/region_data_constants_test.cc index 8942445..63e6ae2 100644 --- a/src/third_party/libaddressinput/src/cpp/test/region_data_constants_test.cc +++ b/src/third_party/libaddressinput/src/cpp/test/region_data_constants_test.cc @@ -14,6 +14,8 @@ #include "region_data_constants.h" +#include + #include #include @@ -23,7 +25,13 @@ namespace { using i18n::addressinput::RegionDataConstants; // Tests for region codes, for example "ZA". -class RegionCodeTest : public testing::TestWithParam {}; +class RegionCodeTest : public testing::TestWithParam { + protected: + RegionCodeTest() {} + + private: + DISALLOW_COPY_AND_ASSIGN(RegionCodeTest); +}; // Verifies that a region code consists of two characters, for example "ZA". TEST_P(RegionCodeTest, RegionCodeHasTwoCharacters) { @@ -57,9 +65,14 @@ TEST(DefaultRegionDataTest, DefaultRegionHasCurlyBraces) { // Tests for region data, for example "{\"fmt\":\"%C%S\"}". class RegionDataTest : public testing::TestWithParam { protected: + RegionDataTest() {} + const std::string& GetData() const { return RegionDataConstants::GetRegionData(GetParam()); } + + private: + DISALLOW_COPY_AND_ASSIGN(RegionDataTest); }; // Verifies that a region data value begins with '{' and end with '}', for