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

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

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h>
6
5 #include <utility> 7 #include <utility>
6 8
9 #include "base/macros.h"
7 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
8 #include "base/threading/platform_thread.h" 11 #include "base/threading/platform_thread.h"
9 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "build/build_config.h"
10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 14 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
11 #include "chrome/browser/notifications/notification_delegate.h" 15 #include "chrome/browser/notifications/notification_delegate.h"
12 #include "chrome/browser/notifications/notification_test_util.h" 16 #include "chrome/browser/notifications/notification_test_util.h"
13 #include "chrome/browser/notifications/platform_notification_service_impl.h" 17 #include "chrome/browser/notifications/platform_notification_service_impl.h"
14 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
15 #include "components/content_settings/core/browser/host_content_settings_map.h" 19 #include "components/content_settings/core/browser/host_content_settings_map.h"
16 #include "content/public/browser/desktop_notification_delegate.h" 20 #include "content/public/browser/desktop_notification_delegate.h"
17 #include "content/public/common/platform_notification_data.h" 21 #include "content/public/common/platform_notification_data.h"
18 #include "content/public/test/test_browser_thread_bundle.h" 22 #include "content/public/test/test_browser_thread_bundle.h"
19 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 395
392 notification = service()->CreateNotificationFromData( 396 notification = service()->CreateNotificationFromData(
393 profile(), 397 profile(),
394 GURL("chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html"), 398 GURL("chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html"),
395 SkBitmap(), notification_data, new MockNotificationDelegate("hello")); 399 SkBitmap(), notification_data, new MockNotificationDelegate("hello"));
396 EXPECT_EQ("NotificationTest", 400 EXPECT_EQ("NotificationTest",
397 base::UTF16ToUTF8(notification.context_message())); 401 base::UTF16ToUTF8(notification.context_message()));
398 } 402 }
399 403
400 #endif // defined(ENABLE_EXTENSIONS) 404 #endif // defined(ENABLE_EXTENSIONS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698