Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1038)

Unified Diff: mojo/tools/testing/mojom_fetcher/mojom_file_tests.py

Issue 1709333002: Remove mojom_fetcher. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/tools/testing/mojom_fetcher/mojom_file_tests.py
diff --git a/mojo/tools/testing/mojom_fetcher/mojom_file_tests.py b/mojo/tools/testing/mojom_fetcher/mojom_file_tests.py
deleted file mode 100644
index cb5558d299ea61df22f7648012c49ead0314b81a..0000000000000000000000000000000000000000
--- a/mojo/tools/testing/mojom_fetcher/mojom_file_tests.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os.path
-import unittest
-
-from fetcher.mojom_file import MojomFile
-from fetcher.dependency import Dependency
-from fetcher.repository import Repository
-from fakes import FakeDependency, FakeMojomFile
-
-
-class TestMojomFile(unittest.TestCase):
- def test_add_dependency(self):
- mojom = MojomFile(Repository("/base/repo", "third_party/external"),
- "mojom_name")
- mojom.add_dependency("dependency_name")
- self.assertEqual(1, len(mojom.deps))
- self.assertEqual("mojom_name", mojom.deps[0].get_importer())
- self.assertEqual("dependency_name", mojom.deps[0].get_imported())
-
- def test_jinja_parameters(self):
- mojom = FakeMojomFile(
- Repository("/base/repo", "third_party/external"),
- "/base/repo/third_party/external/domokit.org/bar/baz/foo.mojom")
- mojom.add_dependency("example.com/dir/example.mojom")
- mojom.add_dependency("example.com/dir/dir.mojom")
- mojom.add_dependency("buzz.mojom")
- mojom.add_dependency("foo/bar.mojom")
- mojom.add_dependency(
- "mojo/public/interfaces/application/shell.mojom")
- params = mojom.get_jinja_parameters([])
- self.assertEquals({
- "target_name": "foo",
- "filename": "foo.mojom",
- "import_dirs": [".."],
- "mojo_sdk_deps": ["mojo/public/interfaces/application"],
- "deps": [
- '//third_party/external/example.com/dir:example',
- '//third_party/external/example.com/dir:dir_mojom',
- ':buzz',
- '../foo:bar']
- }, params)
« no previous file with comments | « mojo/tools/testing/mojom_fetcher/mojom_fetcher_tests.py ('k') | mojo/tools/testing/mojom_fetcher/mojom_gn_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698