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

Side by Side Diff: chrome/browser/notifications/notification_browsertest.cc

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
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 <deque> 5 #include <deque>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/stringprintf.h" 14 #include "base/stringprintf.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 17 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
18 #include "chrome/browser/infobars/infobar_service.h" 18 #include "chrome/browser/infobars/infobar_service.h"
19 #include "chrome/browser/notifications/balloon.h" 19 #include "chrome/browser/notifications/balloon.h"
20 #include "chrome/browser/notifications/balloon_collection.h" 20 #include "chrome/browser/notifications/balloon_collection.h"
21 #include "chrome/browser/notifications/balloon_host.h" 21 #include "chrome/browser/notifications/balloon_host.h"
22 #include "chrome/browser/notifications/balloon_notification_ui_manager.h" 22 #include "chrome/browser/notifications/balloon_notification_ui_manager.h"
23 #include "chrome/browser/notifications/desktop_notification_service.h" 23 #include "chrome/browser/notifications/desktop_notification_service.h"
24 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 24 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
25 #include "chrome/browser/notifications/notification.h" 25 #include "chrome/browser/notifications/notification.h"
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 const std::deque<Balloon*>& balloons = GetActiveBalloons(); 957 const std::deque<Balloon*>& balloons = GetActiveBalloons();
958 ASSERT_EQ(1U, balloons.size()); 958 ASSERT_EQ(1U, balloons.size());
959 Balloon* balloon = balloons[0]; 959 Balloon* balloon = balloons[0];
960 const Notification& notification = balloon->notification(); 960 const Notification& notification = balloon->notification();
961 GURL EXPECTED_ICON_URL = test_server()->GetURL(kExpectedIconUrl); 961 GURL EXPECTED_ICON_URL = test_server()->GetURL(kExpectedIconUrl);
962 EXPECT_EQ(EXPECTED_ICON_URL, notification.icon_url()); 962 EXPECT_EQ(EXPECTED_ICON_URL, notification.icon_url());
963 EXPECT_EQ(ASCIIToUTF16("Title2"), notification.title()); 963 EXPECT_EQ(ASCIIToUTF16("Title2"), notification.title());
964 EXPECT_EQ(ASCIIToUTF16("Body2"), notification.message()); 964 EXPECT_EQ(ASCIIToUTF16("Body2"), notification.message());
965 } 965 }
966 } 966 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698