| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 from crash import crash_util |
| 6 |
| 7 from testing_utils import testing |
| 8 |
| 9 |
| 10 class CrashUtilTest(testing.AppengineTestCase): |
| 11 |
| 12 def testIsSameFilePath(self): |
| 13 path_1 = 'third_party/a/b/c/file.cc' |
| 14 path_2 = 'third_party/a/file.cc' |
| 15 |
| 16 self.assertTrue(crash_util.IsSameFilePath(path_1, path_2)) |
| 17 |
| 18 path_1 = 'a/b/c/file.cc' |
| 19 path_2 = 'a/b/c/file2.cc' |
| 20 |
| 21 self.assertFalse(crash_util.IsSameFilePath(path_1, path_2)) |
| 22 |
| 23 path_1 = 'a/b/c/d/e/file.cc' |
| 24 path_2 = 'f/g/file.cc' |
| 25 |
| 26 self.assertFalse(crash_util.IsSameFilePath(path_1, path_2)) |
| OLD | NEW |