chrome/browser/chromeos/drive/drive_file_system_unittest.cc
// Callback to DriveFileSystem::Search used in ContentSearch tests.
// Verifies returned vector of results and next feed url.
Callback to DriveFileSystem::Search used in ContentSearch tests.
Verifies returned vector of results and next feed url.
Callback to DriveFileSystem :: Search used in ContentSearch tests . Verifies returned vector of results and next feed url .
void DriveSearchCallback(
    MessageLoop* message_loop,
    const SearchResultPair* expected_results,
    size_t expected_results_size,
    const GURL& expected_next_feed,
    DriveFileError error,
    const GURL& next_feed,
    scoped_ptr<std::vector<SearchResultInfo> > results) {
  ASSERT_TRUE(results.get());
  ASSERT_EQ(expected_results_size, results->size());
  for (size_t i = 0; i < results->size(); i++) {
    EXPECT_EQ(FilePath(expected_results[i].path),
              results->at(i).path);
    EXPECT_EQ(expected_results[i].is_directory,
              results->at(i).entry_proto.file_info().is_directory());
  }
  EXPECT_EQ(expected_next_feed, next_feed);
  message_loop->Quit();
}
void DriveSearchCallback ( MessageLoop * message_loop , const SearchResultPair * expected_results , size_t expected_results_size , const GURL & expected_next_feed , DriveFileError error , const GURL & next_feed , scoped_ptr < std :: vector < SearchResultInfo > > results ) { ASSERT_TRUE ( results . get ( ) ) ; ASSERT_EQ ( expected_results_size , results -> size ( ) ) ; for ( size_t i = 0 ; i < results -> size ( ) ; i ++ ) { EXPECT_EQ ( FilePath ( expected_results [ i ] . path ) , results -> at ( i ) . path ) ; EXPECT_EQ ( expected_results [ i ] . is_directory , results -> at ( i ) . entry_proto . file_info ( ) . is_directory ( ) ) ; } EXPECT_EQ ( expected_next_feed , next_feed ) ; message_loop -> Quit ( ) ; }
Callback to DriveFileSystem::Search used in ContentSearch tests.
Callback to DriveFileSystem :: Search used in ContentSearch tests .