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

Side by Side Diff: device/u2f/BUILD.gn

Issue 2838573002: Revert of Add U2F request state machines (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « device/BUILD.gn ('k') | device/u2f/mock_u2f_device.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//testing/libfuzzer/fuzzer_test.gni") 6 import("//testing/libfuzzer/fuzzer_test.gni")
7 7
8 source_set("u2f") { 8 source_set("u2f") {
9 sources = [ 9 sources = [
10 "u2f_apdu_command.cc", 10 "u2f_apdu_command.cc",
11 "u2f_apdu_command.h", 11 "u2f_apdu_command.h",
12 "u2f_apdu_response.cc", 12 "u2f_apdu_response.cc",
13 "u2f_apdu_response.h", 13 "u2f_apdu_response.h",
14 "u2f_device.cc", 14 "u2f_device.cc",
15 "u2f_device.h", 15 "u2f_device.h",
16 "u2f_hid_device.cc", 16 "u2f_hid_device.cc",
17 "u2f_hid_device.h", 17 "u2f_hid_device.h",
18 "u2f_message.cc", 18 "u2f_message.cc",
19 "u2f_message.h", 19 "u2f_message.h",
20 "u2f_packet.cc", 20 "u2f_packet.cc",
21 "u2f_packet.h", 21 "u2f_packet.h",
22 "u2f_register.cc",
23 "u2f_register.h",
24 "u2f_request.cc",
25 "u2f_request.h",
26 "u2f_return_code.h",
27 "u2f_sign.cc",
28 "u2f_sign.h",
29 ] 22 ]
30 23
31 deps = [ 24 deps = [
32 "//base", 25 "//base",
33 "//crypto", 26 "//crypto",
34 "//device/base", 27 "//device/base",
35 "//device/hid", 28 "//device/hid",
36 "//net", 29 "//net",
37 ] 30 ]
38 } 31 }
39 32
40 source_set("mocks") {
41 testonly = true
42
43 sources = [
44 "mock_u2f_device.cc",
45 "mock_u2f_device.h",
46 ]
47
48 deps = [
49 ":u2f",
50 "//base",
51 "//testing/gmock",
52 ]
53 }
54
55 fuzzer_test("u2f_apdu_fuzzer") { 33 fuzzer_test("u2f_apdu_fuzzer") {
56 sources = [ 34 sources = [
57 "u2f_apdu_fuzzer.cc", 35 "u2f_apdu_fuzzer.cc",
58 ] 36 ]
59 deps = [ 37 deps = [
60 ":u2f", 38 ":u2f",
61 "//net", 39 "//net",
62 ] 40 ]
63 libfuzzer_options = [ "max_len=65537" ] 41 libfuzzer_options = [ "max_len=65537" ]
64 } 42 }
65 43
66 fuzzer_test("u2f_message_fuzzer") { 44 fuzzer_test("u2f_message_fuzzer") {
67 sources = [ 45 sources = [
68 "u2f_message_fuzzer.cc", 46 "u2f_message_fuzzer.cc",
69 ] 47 ]
70 deps = [ 48 deps = [
71 ":u2f", 49 ":u2f",
72 "//net", 50 "//net",
73 ] 51 ]
74 libfuzzer_options = [ "max_len=2048" ] 52 libfuzzer_options = [ "max_len=2048" ]
75 } 53 }
OLDNEW
« no previous file with comments | « device/BUILD.gn ('k') | device/u2f/mock_u2f_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698