OLD | NEW |
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 source_set("drive") { | 7 static_library("drive") { |
8 sources = [ | 8 sources = [ |
9 "drive_api_util.cc", | 9 "drive_api_util.cc", |
10 "drive_api_util.h", | 10 "drive_api_util.h", |
11 "drive_app_registry.cc", | 11 "drive_app_registry.cc", |
12 "drive_app_registry.h", | 12 "drive_app_registry.h", |
13 "drive_app_registry_observer.h", | 13 "drive_app_registry_observer.h", |
14 "drive_notification_manager.cc", | 14 "drive_notification_manager.cc", |
15 "drive_notification_manager.h", | 15 "drive_notification_manager.h", |
16 "drive_notification_observer.h", | 16 "drive_notification_observer.h", |
17 "drive_pref_names.cc", | 17 "drive_pref_names.cc", |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 ":proto", | 137 ":proto", |
138 ] | 138 ] |
139 } | 139 } |
140 | 140 |
141 proto_library("proto") { | 141 proto_library("proto") { |
142 sources = [ | 142 sources = [ |
143 "drive.proto", | 143 "drive.proto", |
144 ] | 144 ] |
145 } | 145 } |
146 | 146 |
147 source_set("test_support") { | 147 static_library("test_support") { |
148 testonly = true | 148 testonly = true |
149 sources = [ | 149 sources = [ |
150 "service/dummy_drive_service.cc", | 150 "service/dummy_drive_service.cc", |
151 "service/dummy_drive_service.h", | 151 "service/dummy_drive_service.h", |
152 "service/fake_drive_service.cc", | 152 "service/fake_drive_service.cc", |
153 "service/fake_drive_service.h", | 153 "service/fake_drive_service.h", |
154 "service/test_util.cc", | 154 "service/test_util.cc", |
155 "service/test_util.h", | 155 "service/test_util.h", |
156 ] | 156 ] |
157 deps = [ | 157 deps = [ |
158 ":drive", | 158 ":drive", |
159 ":proto", | 159 ":proto", |
160 "//base", | 160 "//base", |
161 "//components/prefs:test_support", | 161 "//components/prefs:test_support", |
162 "//content/test:test_support", | 162 "//content/test:test_support", |
163 "//google_apis:test_support", | 163 "//google_apis:test_support", |
164 "//net:net", | 164 "//net:net", |
165 ] | 165 ] |
166 } | 166 } |
167 | 167 |
168 source_set("test_support_chromeos") { | 168 if (is_chromeos) { |
169 testonly = true | 169 static_library("test_support_chromeos") { |
170 sources = [ | 170 testonly = true |
171 "chromeos/drive_test_util.cc", | 171 sources = [ |
172 "chromeos/drive_test_util.h", | 172 "chromeos/drive_test_util.cc", |
173 "chromeos/dummy_file_system.cc", | 173 "chromeos/drive_test_util.h", |
174 "chromeos/dummy_file_system.h", | 174 "chromeos/dummy_file_system.cc", |
175 "chromeos/fake_file_system.cc", | 175 "chromeos/dummy_file_system.h", |
176 "chromeos/fake_file_system.h", | 176 "chromeos/fake_file_system.cc", |
177 "chromeos/fake_free_disk_space_getter.cc", | 177 "chromeos/fake_file_system.h", |
178 "chromeos/fake_free_disk_space_getter.h", | 178 "chromeos/fake_free_disk_space_getter.cc", |
179 ] | 179 "chromeos/fake_free_disk_space_getter.h", |
180 deps = [ | 180 ] |
181 ":drive", | 181 deps = [ |
182 ":drive_chromeos", | 182 ":drive", |
183 ":proto", | 183 ":drive_chromeos", |
184 "//base", | 184 ":proto", |
185 "//components/prefs:test_support", | 185 "//base", |
186 "//content/test:test_support", | 186 "//components/prefs:test_support", |
187 "//google_apis:test_support", | 187 "//content/test:test_support", |
188 ] | 188 "//google_apis:test_support", |
| 189 ] |
| 190 } |
189 } | 191 } |
OLD | NEW |