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

Side by Side Diff: chrome/browser/web_resource/promo_resource_service_mobile_ntp_unittest.cc

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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"
18 #include "chrome/test/base/scoped_testing_local_state.h" 17 #include "chrome/test/base/scoped_testing_local_state.h"
19 #include "chrome/test/base/testing_browser_process.h" 18 #include "chrome/test/base/testing_browser_process.h"
20 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
21 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
22 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
23 22
24 #include "chrome/browser/web_resource/notification_promo_mobile_ntp.h" 23 #include "chrome/browser/web_resource/notification_promo_mobile_ntp.h"
25 24
26 class PromoResourceServiceMobileNtpTest : public testing::Test { 25 class PromoResourceServiceMobileNtpTest : public testing::Test {
27 public: 26 public:
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 "It\'s simple. Go http://www.google.com/chrome/", 172 "It\'s simple. Go http://www.google.com/chrome/",
174 "ACTION_EMAIL", "This is the body.", "XXX value"); 173 "ACTION_EMAIL", "This is the body.", "XXX value");
175 174
176 promo_test.InitPromoFromJson(true); 175 promo_test.InitPromoFromJson(true);
177 176
178 // Second time should not trigger a notification. 177 // Second time should not trigger a notification.
179 promo_test.InitPromoFromJson(false); 178 promo_test.InitPromoFromJson(false);
180 179
181 promo_test.TestInitFromPrefs(); 180 promo_test.TestInitFromPrefs();
182 } 181 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698