// Copyright (C) 2011 The Libphonenumber Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Author: Philippe Liard #include "phonenumbers/stringutil.h" #include <string> #include <vector> #include <gtest/gtest.h> string; vector; namespace i18n { namespace phonenumbers { // Test operator+(const string&, int). TEST(StringUtilTest, OperatorPlus) { … } // Test SimpleItoa implementation. TEST(StringUtilTest, SimpleItoa) { … } TEST(StringUtilTest, HasPrefixString) { … } TEST(StringUtilTest, FindNthWithEmptyString) { … } TEST(StringUtilTest, FindNthWithNNegative) { … } TEST(StringUtilTest, FindNthWithNTooHigh) { … } TEST(StringUtilTest, FindNth) { … } TEST(StringUtilTest, SplitStringUsingWithEmptyString) { … } TEST(StringUtilTest, SplitStringUsing) { … } TEST(StringUtilTest, SplitStringUsingIgnoresEmptyToken) { … } // Test TryStripPrefixString. TEST(StringUtilTest, TryStripPrefixString) { … } // Test HasSuffixString. TEST(StringUtilTest, HasSuffixString) { … } // Test safe_strto32. TEST(StringUtilTest, safe_strto32) { … } // Test safe_strtou64. TEST(StringUtilTest, safe_strtou64) { … } // Test strrmm. TEST(StringUtilTest, strrmm) { … } // Test GlobalReplaceSubstring. TEST(StringUtilTest, GlobalReplaceSubstring) { … } // Test the StringHolder class. TEST(StringUtilTest, StringHolder) { … } // Test the operator+=(string& lhs, const StringHolder& rhs) implementation. TEST(StringUtilTest, OperatorPlusEquals) { … } // Test the StrCat implementations TEST(StringUtilTest, StrCat) { … } // Test the StrAppend implementations. TEST(StringUtilTest, StrAppend) { … } } // namespace phonenumbers } // namespace i18n