Searched refs:old_contents (Results 1 – 5 of 5) sorted by relevance
26 old_contents = ''29 old_contents = f.read()30 if old_contents == new_contents:
110 std::string old_contents; in ReplaceFileContentsIfDifferent() local113 old_contents = in ReplaceFileContentsIfDifferent()117 if (old_contents.length() == 0 || old_contents != contents) { in ReplaceFileContentsIfDifferent()
15 old_contents = f.read()18 if old_contents != new_contents:
184 old_contents = self.read_file(test_file)190 self.assertEqual(old_contents, self.read_file(test_file))196 self.assertNotEqual(old_contents, new_contents)213 old_contents = self.read_file(test_file)217 return old_contents, new_contents
200 old_contents = read_file()206 self.assertEqual(old_contents, read_file())212 self.assertNotEqual(old_contents, new_contents)