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

Unified Diff: components/audio_modem/BUILD.gn

Issue 1304163005: Sync more GN unit tests with GYP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes Created 5 years, 4 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 | « components/BUILD.gn ('k') | components/autofill/core/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/BUILD.gn
diff --git a/components/audio_modem/BUILD.gn b/components/audio_modem/BUILD.gn
index 32f396374c712736f806ccb14929573dcaad75a9..bb4b4b04152ea78a455bc70b8b65441a7a752659 100644
--- a/components/audio_modem/BUILD.gn
+++ b/components/audio_modem/BUILD.gn
@@ -2,7 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-static_library("audio_modem") {
+source_set("audio_modem") {
+ public = [
+ "public/audio_modem_types.h",
+ "public/modem.h",
+ "public/whispernet_client.h",
+ ]
sources = [
"audio_modem_switches.cc",
"audio_modem_switches.h",
@@ -15,9 +20,6 @@ static_library("audio_modem") {
"constants.cc",
"modem_impl.cc",
"modem_impl.h",
- "public/audio_modem_types.h",
- "public/modem.h",
- "public/whispernet_client.h",
]
deps = [
@@ -30,6 +32,7 @@ static_library("audio_modem") {
}
source_set("test_support") {
+ testonly = true
sources = [
"test/random_samples.cc",
"test/random_samples.h",
@@ -39,8 +42,27 @@ source_set("test_support") {
"test/stub_whispernet_client.h",
]
+ public_deps = [
+ ":audio_modem",
+ ]
deps = [
"//base",
"//media",
]
}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "audio_player_unittest.cc",
+ "audio_recorder_unittest.cc",
+ "modem_unittest.cc",
+ ]
+
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
+
+ deps = [
+ ":test_support",
+ "//testing/gtest",
+ ]
+}
« no previous file with comments | « components/BUILD.gn ('k') | components/autofill/core/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698