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

Side by Side Diff: components/browser_watcher/BUILD.gn

Issue 1036623002: Implements a monitor to watch for the browser hanging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Erik's comments. Add GN build config. Created 5 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 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 source_set("browser_watcher") { 5 source_set("browser_watcher") {
6 # This is a separate lib to minimize the dependencies for its 6 # This is a separate lib to minimize the dependencies for its
7 # hosting binary "chrome_watcher.dll". 7 # hosting binary "chrome_watcher.dll".
8 sources = [ 8 sources = [
9 "endsession_watcher_window_win.cc", 9 "endsession_watcher_window_win.cc",
10 "endsession_watcher_window_win.h", 10 "endsession_watcher_window_win.h",
11 "exit_code_watcher_win.cc", 11 "exit_code_watcher_win.cc",
12 "exit_code_watcher_win.h", 12 "exit_code_watcher_win.h",
13 "exit_funnel_win.cc", 13 "exit_funnel_win.cc",
14 "exit_funnel_win.h", 14 "exit_funnel_win.h",
15 "window_hang_monitor_win.cc",
16 "window_hang_monitor_win.h",
15 ] 17 ]
16 deps = [ 18 deps = [
17 "//base", 19 "//base",
18 ] 20 ]
19 } 21 }
20 22
21 source_set("browser_watcher_client") { 23 source_set("browser_watcher_client") {
22 sources = [ 24 sources = [
23 "watcher_client_win.cc", 25 "watcher_client_win.cc",
24 "watcher_client_win.h", 26 "watcher_client_win.h",
25 "watcher_metrics_provider_win.cc", 27 "watcher_metrics_provider_win.cc",
26 "watcher_metrics_provider_win.h", 28 "watcher_metrics_provider_win.h",
27 ] 29 ]
28 deps = [ 30 deps = [
29 "//base", 31 "//base",
30 ] 32 ]
31 } 33 }
32 34
33 source_set("unit_tests") { 35 source_set("unit_tests") {
34 testonly = true 36 testonly = true
35 sources = [ 37 sources = [
36 "endsession_watcher_window_win_unittest.cc", 38 "endsession_watcher_window_win_unittest.cc",
37 "exit_code_watcher_win_unittest.cc", 39 "exit_code_watcher_win_unittest.cc",
38 "exit_funnel_win_unittest.cc", 40 "exit_funnel_win_unittest.cc",
39 "watcher_client_win_unittest.cc", 41 "watcher_client_win_unittest.cc",
40 "watcher_metrics_provider_win_unittest.cc", 42 "watcher_metrics_provider_win_unittest.cc",
43 "window_hang_monitor_win_unittest.cc",
41 ] 44 ]
42 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 45 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
43 deps = [ 46 deps = [
44 ":browser_watcher", 47 ":browser_watcher",
45 ":browser_watcher_client", 48 ":browser_watcher_client",
46 "//testing/gtest", 49 "//testing/gtest",
47 ] 50 ]
48 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698