OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/logging.h" | 5 #include "base/logging.h" |
6 #include "chrome/browser/extensions/apps_promo.h" | 6 #include "chrome/browser/extensions/apps_promo.h" |
7 #include "chrome/browser/prefs/browser_prefs.h" | 7 #include "chrome/browser/prefs/browser_prefs.h" |
8 #include "chrome/browser/ui/webui/ntp/shown_sections_handler.h" | 8 #include "chrome/browser/ui/webui/ntp/shown_sections_handler.h" |
9 #include "chrome/common/extensions/extension.h" | 9 #include "chrome/common/extensions/extension.h" |
10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| 11 #include "chrome/test/base/testing_browser_process_test.h" |
11 #include "chrome/test/base/testing_pref_service.h" | 12 #include "chrome/test/base/testing_pref_service.h" |
12 #include "chrome/test/testing_browser_process_test.h" | |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 const char kPromoId[] = "23123123"; | 18 const char kPromoId[] = "23123123"; |
19 const char kPromoHeader[] = "Get great apps!"; | 19 const char kPromoHeader[] = "Get great apps!"; |
20 const char kPromoButton[] = "Click for apps!"; | 20 const char kPromoButton[] = "Click for apps!"; |
21 const char kPromoLink[] = "http://apps.com"; | 21 const char kPromoLink[] = "http://apps.com"; |
22 const char kPromoLogo[] = "chrome://theme/IDR_WEBSTORE_ICON"; | 22 const char kPromoLogo[] = "chrome://theme/IDR_WEBSTORE_ICON"; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 // A promo with a new ID should maximize though. | 305 // A promo with a new ID should maximize though. |
306 AppsPromo::SetPromo("lkksdf", kPromoHeader, kPromoButton, | 306 AppsPromo::SetPromo("lkksdf", kPromoHeader, kPromoButton, |
307 GURL(kPromoLink), kPromoExpire, GURL(""), | 307 GURL(kPromoLink), kPromoExpire, GURL(""), |
308 AppsPromo::USERS_NEW | AppsPromo::USERS_EXISTING); | 308 AppsPromo::USERS_NEW | AppsPromo::USERS_EXISTING); |
309 apps_promo()->MaximizeAppsIfNecessary(); | 309 apps_promo()->MaximizeAppsIfNecessary(); |
310 ExpectAppsSectionMaximized(prefs(), true); | 310 ExpectAppsSectionMaximized(prefs(), true); |
311 } | 311 } |
312 | 312 |
313 #endif // OS_CHROMEOS | 313 #endif // OS_CHROMEOS |
OLD | NEW |