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

Side by Side Diff: chrome/browser/ui/cocoa/notifications/message_center_tray_bridge_unittest.mm

Issue 112913004: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #import "chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.h" 5 #import "chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 29 matching lines...) Expand all
40 40
41 TEST_F(MessageCenterTrayBridgeTest, StatusItemOnlyAfterFirstNotification) { 41 TEST_F(MessageCenterTrayBridgeTest, StatusItemOnlyAfterFirstNotification) {
42 EXPECT_FALSE(status_item()); 42 EXPECT_FALSE(status_item());
43 43
44 message_center::RichNotificationData data; 44 message_center::RichNotificationData data;
45 data.priority = -1; 45 data.priority = -1;
46 scoped_ptr<message_center::Notification> notification( 46 scoped_ptr<message_center::Notification> notification(
47 new message_center::Notification( 47 new message_center::Notification(
48 message_center::NOTIFICATION_TYPE_SIMPLE, 48 message_center::NOTIFICATION_TYPE_SIMPLE,
49 "1", 49 "1",
50 ASCIIToUTF16("First notification"), 50 base::ASCIIToUTF16("First notification"),
51 ASCIIToUTF16("This is a simple test."), 51 base::ASCIIToUTF16("This is a simple test."),
52 gfx::Image(), 52 gfx::Image(),
53 base::string16(), 53 base::string16(),
54 message_center::NotifierId(), 54 message_center::NotifierId(),
55 data, 55 data,
56 NULL)); 56 NULL));
57 center_->AddNotification(notification.Pass()); 57 center_->AddNotification(notification.Pass());
58 58
59 base::RunLoop().RunUntilIdle(); 59 base::RunLoop().RunUntilIdle();
60 60
61 EXPECT_TRUE(status_item()); 61 EXPECT_TRUE(status_item());
62 EXPECT_EQ(1u, [status_item() unreadCount]); 62 EXPECT_EQ(1u, [status_item() unreadCount]);
63 63
64 center_->RemoveNotification("1", /*by_user=*/true); 64 center_->RemoveNotification("1", /*by_user=*/true);
65 65
66 base::RunLoop().RunUntilIdle(); 66 base::RunLoop().RunUntilIdle();
67 67
68 EXPECT_TRUE(status_item()); 68 EXPECT_TRUE(status_item());
69 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698