OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <stddef.h> |
| 6 |
5 #include <vector> | 7 #include <vector> |
6 | 8 |
7 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
8 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
9 #include "base/prefs/testing_pref_service.h" | 11 #include "base/prefs/testing_pref_service.h" |
10 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
12 #include "base/time/time.h" | 14 #include "base/time/time.h" |
13 #include "base/values.h" | 15 #include "base/values.h" |
14 #include "components/version_info/version_info.h" | 16 #include "components/version_info/version_info.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 178 |
177 promo_test.InitPromoFromJson(true); | 179 promo_test.InitPromoFromJson(true); |
178 | 180 |
179 // Second time should not trigger a notification. | 181 // Second time should not trigger a notification. |
180 promo_test.InitPromoFromJson(false); | 182 promo_test.InitPromoFromJson(false); |
181 | 183 |
182 promo_test.TestInitFromPrefs(); | 184 promo_test.TestInitFromPrefs(); |
183 } | 185 } |
184 | 186 |
185 } // namespace web_resource | 187 } // namespace web_resource |
OLD | NEW |