tests/ceftests/frame_unittest.cc
// Extract the nav number from the URL.
Extract the nav number from the URL.
Extract the nav number from the URL .
int GetNavFromMultiNavURL(const std::string& url) {
  const size_t start = url.find("/nav");
  const size_t end = url.find(".html", start);
  EXPECT_TRUE(start < end && start > 0U);
  const std::string& nav = url.substr(start + 4, end - start - 4);
  return atoi(nav.c_str());
}
int GetNavFromMultiNavURL ( const std :: string & url ) { const size_t start = url . find ( " " ) ; const size_t end = url . find ( " " , start ) ; EXPECT_TRUE ( start < end && start > 0U ) ; const std :: string & nav = url . substr ( start + 4 , end - start - 4 ) ; return atoi ( nav . c_str ( ) ) ; }
Extract the nav number from the URL.
Extract the nav number from the URL .