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

Unified Diff: mojo/shell/fetcher/url_resolver_unittest.cc

Issue 1701933004: Remove the old package manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@am2
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/shell/fetcher/url_resolver.cc ('k') | mojo/shell/identity.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/fetcher/url_resolver_unittest.cc
diff --git a/mojo/shell/fetcher/url_resolver_unittest.cc b/mojo/shell/fetcher/url_resolver_unittest.cc
deleted file mode 100644
index 23a829ef17a6c65a8cc6f49f4feedd9c810d5bc5..0000000000000000000000000000000000000000
--- a/mojo/shell/fetcher/url_resolver_unittest.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 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.
-
-#include "mojo/shell/fetcher/url_resolver.h"
-
-#include "base/files/file_util.h"
-#include "base/files/scoped_temp_dir.h"
-#include "base/logging.h"
-#include "mojo/util/filename_util.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace mojo {
-namespace shell {
-namespace test {
-namespace {
-
-typedef testing::Test URLResolverTest;
-
-TEST_F(URLResolverTest, TestQueryForBaseFileURL) {
- URLResolver resolver(GURL("file:///base"));
- GURL mapped_url = resolver.ResolveMojoURL(GURL("mojo:foo?a=b"));
- EXPECT_EQ("file:///base/foo/foo.mojo?a=b", mapped_url.spec());
-}
-
-TEST_F(URLResolverTest, TestQueryForBaseHttpURL) {
- URLResolver resolver(GURL("http://127.0.0.1:1234"));
- GURL mapped_url = resolver.ResolveMojoURL(GURL("mojo:foo?a=b"));
- EXPECT_EQ("http://127.0.0.1:1234/foo/foo.mojo?a=b", mapped_url.spec());
-}
-
-TEST_F(URLResolverTest, TestManifest) {
- URLResolver resolver(GURL("file:///base"));
- {
- GURL mapped_url = resolver.ResolveMojoManifest(GURL("mojo:foo"));
- EXPECT_EQ("file:///base/foo/manifest.json", mapped_url.spec());
- }
- {
- GURL mapped_url = resolver.ResolveMojoManifest(GURL("exe:foo"));
- EXPECT_EQ("file:///base/foo_manifest.json", mapped_url.spec());
- }
- {
- GURL mapped_url = resolver.ResolveMojoManifest(GURL("http://localhost/"));
- EXPECT_TRUE(mapped_url.is_empty());
- }
-}
-
-} // namespace
-} // namespace test
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/fetcher/url_resolver.cc ('k') | mojo/shell/identity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698