| Index: tools/grit/grit/grd_reader_unittest.py
|
| diff --git a/tools/grit/grit/grd_reader_unittest.py b/tools/grit/grit/grd_reader_unittest.py
|
| index 1670e4a14451fc4cc44668402dcafa43967d0219..050f877c4bc876948e4efce6bfb329f0f9749047 100644
|
| --- a/tools/grit/grit/grd_reader_unittest.py
|
| +++ b/tools/grit/grit/grd_reader_unittest.py
|
| @@ -114,8 +114,10 @@ class GrdReaderUnittest(unittest.TestCase):
|
| grit_root_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)),
|
| '..')
|
| root.AssignFirstIds(
|
| - os.path.join(grit_root_dir, "../../chrome/app/generated_resources.grd"),
|
| - None, {})
|
| + os.path.join(grit_root_dir,
|
| + "grit/testdata/chrome/app/generated_resources.grd"),
|
| + os.path.join(grit_root_dir, "grit/testdata/tools/grit/resource_ids"),
|
| + {})
|
| messages_node = root.children[0].children[0]
|
| self.failUnless(isinstance(messages_node, empty.MessagesNode))
|
| self.failUnless(messages_node.attrs["first_id"] !=
|
| @@ -144,7 +146,9 @@ class GrdReaderUnittest(unittest.TestCase):
|
| grit_root_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)),
|
| '..')
|
| root.AssignFirstIds(
|
| - os.path.join(grit_root_dir, "../../test.grd"),
|
| + # This file does not actually exist, but the path must match
|
| + # the path of the resource_ids file as it has SRCDIR set to "."
|
| + os.path.join(grit_root_dir, "grit/testdata/test.grd"),
|
| os.path.join(grit_root_dir, "grit/testdata/resource_ids"),
|
| {})
|
| messages_node = root.children[0].children[0]
|
|
|