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

Unified Diff: mojo/tools/testing/mojom_fetcher/mojom_directory_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
« no previous file with comments | « mojo/tools/testing/mojom_fetcher/fakes.py ('k') | mojo/tools/testing/mojom_fetcher/mojom_fetcher_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/testing/mojom_fetcher/mojom_directory_tests.py
diff --git a/mojo/tools/testing/mojom_fetcher/mojom_directory_tests.py b/mojo/tools/testing/mojom_fetcher/mojom_directory_tests.py
deleted file mode 100644
index 0b2f5dd12b6d5c5ede8008d8d87488fdda516a59..0000000000000000000000000000000000000000
--- a/mojo/tools/testing/mojom_fetcher/mojom_directory_tests.py
+++ /dev/null
@@ -1,50 +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 fakes import FakeMojomFile
-from fetcher.dependency import Dependency
-from fetcher.mojom_directory import MojomDirectory
-from fetcher.mojom_file import MojomFile
-from fetcher.repository import Repository
-
-
-class TestMojomDirectory(unittest.TestCase):
- def test_build_gn_path(self):
- directory = MojomDirectory(
- "/base/repo/third_party/external/domokit.org/bar/baz")
- self.assertEquals(
- "/base/repo/third_party/external/domokit.org/bar/baz/BUILD.gn",
- directory.get_build_gn_path())
-
- 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")
- directory = MojomDirectory(
- "/base/repo/third_party/external/domokit.org/bar/baz")
- directory.add_mojom(mojom)
- params = directory.get_jinja_parameters([])
- self.assertEquals(
- {"group_name": "baz",
- "mojoms": [{
- "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/fakes.py ('k') | mojo/tools/testing/mojom_fetcher/mojom_fetcher_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698