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

Side by Side Diff: ios/chrome/browser/sessions/BUILD.gn

Issue 2810743002: [ios] Refactor SessionServiceIOS to remove dependency on BrowserState. (Closed)
Patch Set: Rebase. 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 source_set("sessions") { 5 source_set("sessions") {
6 configs += [ "//build/config/compiler:enable_arc" ] 6 configs += [ "//build/config/compiler:enable_arc" ]
7 sources = [ 7 sources = [
8 "ios_chrome_session_tab_helper.h", 8 "ios_chrome_session_tab_helper.h",
9 "ios_chrome_session_tab_helper.mm", 9 "ios_chrome_session_tab_helper.mm",
10 "ios_chrome_tab_restore_service_client.h", 10 "ios_chrome_tab_restore_service_client.h",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 source_set("test_support") { 62 source_set("test_support") {
63 configs += [ "//build/config/compiler:enable_arc" ] 63 configs += [ "//build/config/compiler:enable_arc" ]
64 testonly = true 64 testonly = true
65 sources = [ 65 sources = [
66 "test_session_service.h", 66 "test_session_service.h",
67 "test_session_service.mm", 67 "test_session_service.mm",
68 ] 68 ]
69 deps = [ 69 deps = [
70 ":sessions", 70 ":sessions",
71 "//base",
71 ] 72 ]
72 } 73 }
73 74
74 source_set("unit_tests") { 75 source_set("unit_tests") {
75 configs += [ "//build/config/compiler:enable_arc" ] 76 configs += [ "//build/config/compiler:enable_arc" ]
76 testonly = true 77 testonly = true
77 sources = [ 78 sources = [
78 "session_service_ios_unittest.mm", 79 "session_service_ios_unittest.mm",
79 "session_window_ios_unittest.mm", 80 "session_window_ios_unittest.mm",
80 ] 81 ]
81 deps = [ 82 deps = [
82 ":resources_unit_tests", 83 ":resources_unit_tests",
83 ":sessions", 84 ":sessions",
84 "//base", 85 "//base",
86 "//base/test:test_support",
85 "//ios/chrome/browser", 87 "//ios/chrome/browser",
86 "//ios/chrome/browser/browser_state:test_support", 88 "//ios/chrome/browser/browser_state:test_support",
87 "//ios/web", 89 "//ios/web",
88 "//ios/web:test_support", 90 "//ios/web:test_support",
89 "//testing/gtest", 91 "//testing/gtest",
90 "//third_party/ocmock", 92 "//third_party/ocmock",
91 ] 93 ]
92 libs = [ "Foundation.framework" ] 94 libs = [ "Foundation.framework" ]
93 } 95 }
94 96
95 bundle_data("resources_unit_tests") { 97 bundle_data("resources_unit_tests") {
96 visibility = [ ":unit_tests" ] 98 visibility = [ ":unit_tests" ]
97 testonly = true 99 testonly = true
98 sources = [ 100 sources = [
99 "//ios/chrome/test/data/sessions/corrupted.plist", 101 "//ios/chrome/test/data/sessions/corrupted.plist",
100 "//ios/chrome/test/data/sessions/session_m57.plist", 102 "//ios/chrome/test/data/sessions/session_m57.plist",
101 "//ios/chrome/test/data/sessions/session_m58.plist", 103 "//ios/chrome/test/data/sessions/session_m58.plist",
102 ] 104 ]
103 outputs = [ 105 outputs = [
104 "{{bundle_resources_dir}}/ios/chrome/test/data/sessions/{{source_file_part}} ", 106 "{{bundle_resources_dir}}/ios/chrome/test/data/sessions/{{source_file_part}} ",
105 ] 107 ]
106 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698