Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 assert(is_win) | 8 assert(is_win) |
| 9 | 9 |
| 10 # This target only contains utility functions which must only depend on | 10 # This target only contains utility functions which must only depend on |
| 11 # kernel32. Please don't add dependencies on other system libraries. | 11 # kernel32. Please don't add dependencies on other system libraries. |
| 12 static_library("nt_registry") { | 12 static_library("nt_registry") { |
| 13 sources = [ | 13 sources = [ |
| 14 "../../sandbox/win/src/nt_internals.h", | 14 "../../sandbox/win/src/nt_internals.h", |
| 15 "nt_registry.cc", | 15 "nt_registry.cc", |
| 16 "nt_registry.h", | 16 "nt_registry.h", |
| 17 ] | 17 ] |
| 18 | 18 |
| 19 libs = [ "kernel32.lib" ] | 19 libs = [ "kernel32.lib" ] |
| 20 } | 20 } |
| 21 | |
| 22 ##------------------------------------------------------------------------------ | |
| 23 ## tests | |
| 24 ##------------------------------------------------------------------------------ | |
| 25 | |
| 26 test("nt_registry_unittests") { | |
| 27 output_name = "nt_registry_unittests" | |
| 28 sources = [ | |
| 29 "test/nt_registry_test.cc", | |
|
grt (UTC plus 2)
2016/09/20 10:39:53
please rename nt_registry_test.cc to nt_registry_u
penny
2016/09/23 23:50:57
Done.
I was following the structure of chrome_elf
| |
| 30 "test/run_all_unittests.cc", | |
| 31 ] | |
| 32 deps = [ | |
| 33 ":nt_registry", | |
| 34 "//base", | |
| 35 "//base/test:test_support", | |
| 36 "//testing/gtest", | |
| 37 ] | |
| 38 } | |
| OLD | NEW |