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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/browser/web_resource/notification_promo.h" | 15 #include "chrome/browser/web_resource/notification_promo.h" |
16 #include "chrome/browser/web_resource/promo_resource_service.h" | 16 #include "chrome/browser/web_resource/promo_resource_service.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "chrome/test/base/scoped_testing_local_state.h" | 18 #include "chrome/test/base/scoped_testing_local_state.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 "It\'s simple. Go http://www.google.com/chrome/", | 173 "It\'s simple. Go http://www.google.com/chrome/", |
174 "ACTION_EMAIL", "This is the body.", "XXX value"); | 174 "ACTION_EMAIL", "This is the body.", "XXX value"); |
175 | 175 |
176 promo_test.InitPromoFromJson(true); | 176 promo_test.InitPromoFromJson(true); |
177 | 177 |
178 // Second time should not trigger a notification. | 178 // Second time should not trigger a notification. |
179 promo_test.InitPromoFromJson(false); | 179 promo_test.InitPromoFromJson(false); |
180 | 180 |
181 promo_test.TestInitFromPrefs(); | 181 promo_test.TestInitFromPrefs(); |
182 } | 182 } |
OLD | NEW |