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

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

Issue 2821263005: Add U2F request state machines (Closed)
Patch Set: Move return code to own header. Fix review comments 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
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_sign.cc",
27 "u2f_sign.h",
22 ] 28 ]
Reilly Grant (use Gerrit) 2017/04/22 00:16:43 Add "u2f_return_code.h" here.
Casey Piper 2017/04/22 00:50:07 Done.
23 29
24 deps = [ 30 deps = [
25 "//base", 31 "//base",
26 "//crypto", 32 "//crypto",
27 "//device/base", 33 "//device/base",
28 "//device/hid", 34 "//device/hid",
29 "//net", 35 "//net",
30 ] 36 ]
31 } 37 }
32 38
39 source_set("mocks") {
40 testonly = true
41
42 sources = [
43 "mock_u2f_device.cc",
44 "mock_u2f_device.h",
45 ]
46
47 deps = [
48 ":u2f",
49 "//base",
50 "//testing/gmock",
51 ]
52 }
53
33 fuzzer_test("u2f_apdu_fuzzer") { 54 fuzzer_test("u2f_apdu_fuzzer") {
34 sources = [ 55 sources = [
35 "u2f_apdu_fuzzer.cc", 56 "u2f_apdu_fuzzer.cc",
36 ] 57 ]
37 deps = [ 58 deps = [
38 ":u2f", 59 ":u2f",
39 "//net", 60 "//net",
40 ] 61 ]
41 libfuzzer_options = [ "max_len=65537" ] 62 libfuzzer_options = [ "max_len=65537" ]
42 } 63 }
43 64
44 fuzzer_test("u2f_message_fuzzer") { 65 fuzzer_test("u2f_message_fuzzer") {
45 sources = [ 66 sources = [
46 "u2f_message_fuzzer.cc", 67 "u2f_message_fuzzer.cc",
47 ] 68 ]
48 deps = [ 69 deps = [
49 ":u2f", 70 ":u2f",
50 "//net", 71 "//net",
51 ] 72 ]
52 libfuzzer_options = [ "max_len=2048" ] 73 libfuzzer_options = [ "max_len=2048" ]
53 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698