TestOrdinal 41 sync/internal_api/public/base/ordinal_unittest.cc COMPILE_ASSERT(TestOrdinal::kZeroDigit == '0', TestOrdinal 43 sync/internal_api/public/base/ordinal_unittest.cc COMPILE_ASSERT(TestOrdinal::kOneDigit == '1', TestOrdinal 45 sync/internal_api/public/base/ordinal_unittest.cc COMPILE_ASSERT(TestOrdinal::kMidDigit == '2', TestOrdinal 47 sync/internal_api/public/base/ordinal_unittest.cc COMPILE_ASSERT(TestOrdinal::kMaxDigit == '3', TestOrdinal 49 sync/internal_api/public/base/ordinal_unittest.cc COMPILE_ASSERT(TestOrdinal::kMidDigitValue == 2, TestOrdinal 51 sync/internal_api/public/base/ordinal_unittest.cc COMPILE_ASSERT(TestOrdinal::kMaxDigitValue == 3, TestOrdinal 53 sync/internal_api/public/base/ordinal_unittest.cc COMPILE_ASSERT(TestOrdinal::kRadix == 4, TestOrdinal 90 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_FALSE(TestOrdinal(std::string()).IsValid()); TestOrdinal 97 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_FALSE(TestOrdinal(kBeforeZero).IsValid()); TestOrdinal 98 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_FALSE(TestOrdinal("4").IsValid()); TestOrdinal 103 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_FALSE(TestOrdinal("0").IsValid()); TestOrdinal 104 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_FALSE(TestOrdinal("00000").IsValid()); TestOrdinal 107 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_FALSE(TestOrdinal("10").IsValid()); TestOrdinal 108 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_FALSE(TestOrdinal("111110").IsValid()); TestOrdinal 115 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_TRUE(TestOrdinal("1").IsValid()); TestOrdinal 122 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal& ordinal1 = TestOrdinal::CreateInitialOrdinal(); TestOrdinal 126 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_TRUE(ordinal1.Equals(TestOrdinal("2"))); TestOrdinal 133 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal& valid_ordinal = TestOrdinal::CreateInitialOrdinal(); TestOrdinal 134 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal invalid_ordinal; TestOrdinal 145 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal small_ordinal("1"); TestOrdinal 146 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal middle_ordinal("2"); TestOrdinal 147 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal big_ordinal("3"); TestOrdinal 195 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal ordinal1("1"); TestOrdinal 196 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal ordinal2("2"); TestOrdinal 208 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("2", TestOrdinal("2").ToInternalValue()); TestOrdinal 227 sync/internal_api/public/base/ordinal_unittest.cc IsNonEmptyPrintableString(TestOrdinal().ToDebugString())); TestOrdinal 229 sync/internal_api/public/base/ordinal_unittest.cc IsNonEmptyPrintableString(TestOrdinal("invalid string").ToDebugString())); TestOrdinal 231 sync/internal_api/public/base/ordinal_unittest.cc IsNonEmptyPrintableString(TestOrdinal("2").ToDebugString())); TestOrdinal 241 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal small_ordinal("1"); TestOrdinal 242 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal middle_ordinal("2"); TestOrdinal 243 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal big_ordinal("3"); TestOrdinal 245 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal::LessThanFn less_than; TestOrdinal 275 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("2", GetBetween<TestOrdinal>("1", "3")); TestOrdinal 276 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("12", GetBetween<TestOrdinal>("1", "2")); TestOrdinal 277 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("22", GetBetween<TestOrdinal>("2", "3")); TestOrdinal 284 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("102", GetBetween<TestOrdinal>("1", "11")); TestOrdinal 285 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("2", GetBetween<TestOrdinal>("1", "31")); TestOrdinal 286 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("132", GetBetween<TestOrdinal>("13", "2")); TestOrdinal 287 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("2", GetBetween<TestOrdinal>("10001", "3")); TestOrdinal 289 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("2", GetBetween<TestOrdinal>("10002", "3")); TestOrdinal 291 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("2", GetBetween<TestOrdinal>("1", "30002")); TestOrdinal 300 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("03", GetBetween<TestOrdinal>("01", "11")); TestOrdinal 301 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("13", GetBetween<TestOrdinal>("11", "21")); TestOrdinal 302 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("113", GetBetween<TestOrdinal>("111", "121")); TestOrdinal 303 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("2", GetBetween<TestOrdinal>("001", "333")); TestOrdinal 304 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("31", GetBetween<TestOrdinal>("222", "333")); TestOrdinal 305 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("3", GetBetween<TestOrdinal>("201", "333")); TestOrdinal 306 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("2", GetBetween<TestOrdinal>("003", "333")); TestOrdinal 307 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("2", GetBetween<TestOrdinal>("2223", "1113")); TestOrdinal 322 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("02", TestOrdinal("1").CreateBefore().ToInternalValue()); TestOrdinal 323 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("03", TestOrdinal("11").CreateBefore().ToInternalValue()); TestOrdinal 324 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("03", TestOrdinal("12").CreateBefore().ToInternalValue()); TestOrdinal 325 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("1", TestOrdinal("13").CreateBefore().ToInternalValue()); TestOrdinal 331 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("31", TestOrdinal("3").CreateAfter().ToInternalValue()); TestOrdinal 332 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("322", TestOrdinal("32").CreateAfter().ToInternalValue()); TestOrdinal 333 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("33322", TestOrdinal("3332").CreateAfter().ToInternalValue()); TestOrdinal 334 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("3", TestOrdinal("22").CreateAfter().ToInternalValue()); TestOrdinal 335 sync/internal_api/public/base/ordinal_unittest.cc EXPECT_EQ("3", TestOrdinal("23").CreateAfter().ToInternalValue()); TestOrdinal 341 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal ordinal1("1"); TestOrdinal 342 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal ordinal2("2"); TestOrdinal 344 sync/internal_api/public/base/ordinal_unittest.cc const TestOrdinal::EqualsFn equals;