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

Unified Diff: components/resource_provider/BUILD.gn

Issue 1108403008: Adds resource_provider::ResourceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 8 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 | « no previous file | components/resource_provider/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/resource_provider/BUILD.gn
diff --git a/components/resource_provider/BUILD.gn b/components/resource_provider/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..c245d5c156a926473ff107a07893c5051bb656b8
--- /dev/null
+++ b/components/resource_provider/BUILD.gn
@@ -0,0 +1,83 @@
+# 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("//testing/test.gni")
+import("//mojo/mojo_application_package.gni")
+
+mojo_native_application("resource_provider") {
+ sources = [
+ "main.cc",
+ "resource_provider_app.cc",
+ "resource_provider_app.h",
+ ]
+
+ deps = [
+ ":lib",
+ "//base",
+ "//components/resource_provider/public/interfaces",
+ "//mojo/application",
+ "//mojo/environment:chromium",
+ "//url",
+ ]
+}
+
+source_set("lib") {
+ sources = [
+ "file_utils.cc",
+ "file_utils.h",
+ "resource_provider_impl.cc",
+ "resource_provider_impl.h",
+ ]
+
+ deps = [
+ "//base",
+ "//components/resource_provider/public/interfaces",
+ "//mojo/common:common_base",
+ "//mojo/platform_handle",
+ "//url",
+ ]
+}
+
+test("tests") {
+ output_name = "resource_provider_unittests"
+ sources = [
+ "file_utils_unittest.cc",
+ ]
+
+ deps = [
+ ":lib",
+ "//base",
+ "//base/test:test_config",
+ "//components/resource_provider/public/interfaces",
+ "//mojo/environment:chromium",
+ "//testing/gtest",
+ "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
+ "//url",
+ ]
+}
+
+mojo_application_package("apptests") {
+ output_name = "resource_provider_apptests"
+ testonly = true
+
+ sources = [
+ "resource_provider_apptest.cc",
+ ]
+
+ resources = [
+ "//components/test/data/resource_provider/sample",
+ "//components/test/data/resource_provider/dir",
+ ]
+
+ deps = [
+ "//base",
+ "//base/test:test_config",
+ "//components/resource_provider/public/interfaces",
+ "//mojo/application",
+ "//mojo/application:test_support",
+ "//mojo/common",
+ "//mojo/platform_handle",
+ "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
+ ]
+}
« no previous file with comments | « no previous file | components/resource_provider/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698