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

Side by Side Diff: chrome/browser/chromeos/notifications/desktop_notifications_unittest.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/utf_string_conversions.h"
5 #include "chrome/browser/chromeos/notifications/desktop_notifications_unittest.h " 6 #include "chrome/browser/chromeos/notifications/desktop_notifications_unittest.h "
6 7
7 namespace chromeos { 8 namespace chromeos {
8 9
9 // static 10 // static
10 std::string DesktopNotificationsTest::log_output_; 11 std::string DesktopNotificationsTest::log_output_;
11 12
12 class MockNotificationUI : public BalloonCollectionImpl::NotificationUI { 13 class MockNotificationUI : public BalloonCollectionImpl::NotificationUI {
13 public: 14 public:
14 virtual void Add(Balloon* balloon) {} 15 virtual void Add(Balloon* balloon) {}
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 265
265 MessageLoopForUI::current()->RunAllPending(); 266 MessageLoopForUI::current()->RunAllPending();
266 EXPECT_EQ(1, balloon_collection_->count()); 267 EXPECT_EQ(1, balloon_collection_->count());
267 Balloon* balloon = (*balloon_collection_->balloons().begin()); 268 Balloon* balloon = (*balloon_collection_->balloons().begin());
268 GURL data_url = balloon->notification().content_url(); 269 GURL data_url = balloon->notification().content_url();
269 EXPECT_EQ(std::string::npos, data_url.spec().find("<script>")); 270 EXPECT_EQ(std::string::npos, data_url.spec().find("<script>"));
270 EXPECT_EQ(std::string::npos, data_url.spec().find("<i>")); 271 EXPECT_EQ(std::string::npos, data_url.spec().find("<i>"));
271 } 272 }
272 273
273 } // namespace chromeos 274 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/network_message_observer.cc ('k') | chrome/browser/chromeos/options/cellular_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698