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

Unified Diff: athena/screen/modal_window_controller_unittest.cc

Issue 653563004: NULL -> nullptr under athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/screen/modal_window_controller.cc ('k') | athena/screen/screen_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/screen/modal_window_controller_unittest.cc
diff --git a/athena/screen/modal_window_controller_unittest.cc b/athena/screen/modal_window_controller_unittest.cc
index b73399a60f963ec728bbc74ed1fff82a1b5f012b..b2b36c6a1f6732226c332301613e13b5868c123f 100644
--- a/athena/screen/modal_window_controller_unittest.cc
+++ b/athena/screen/modal_window_controller_unittest.cc
@@ -23,7 +23,7 @@ aura::Window* FindContainerByPriority(int priority) {
TEST_F(ModalWindowControllerTest, ModalContainer) {
aura::test::EventCountDelegate delegate;
scoped_ptr<aura::Window> modal(test::CreateTransientWindow(
- &delegate, NULL, ui::MODAL_TYPE_SYSTEM, false));
+ &delegate, nullptr, ui::MODAL_TYPE_SYSTEM, false));
aura::Window* modal_container = FindContainerByPriority(CP_SYSTEM_MODAL);
EXPECT_TRUE(modal_container);
@@ -49,9 +49,9 @@ TEST_F(ModalWindowControllerTest, ModalContainer) {
// Create two.
modal = test::CreateTransientWindow(
- &delegate, NULL, ui::MODAL_TYPE_SYSTEM, false).Pass();
+ &delegate, nullptr, ui::MODAL_TYPE_SYSTEM, false).Pass();
scoped_ptr<aura::Window> modal2(test::CreateTransientWindow(
- &delegate, NULL, ui::MODAL_TYPE_SYSTEM, false));
+ &delegate, nullptr, ui::MODAL_TYPE_SYSTEM, false));
modal_container = FindContainerByPriority(CP_SYSTEM_MODAL);
EXPECT_TRUE(modal_container);
@@ -94,7 +94,8 @@ TEST_F(ModalWindowControllerTest, NestedModalWindows) {
aura::Window* default_container = FindContainerByPriority(CP_DEFAULT);
EXPECT_TRUE(default_container);
- scoped_ptr<aura::Window> normal_w1(test::CreateNormalWindow(&delegate, NULL));
+ scoped_ptr<aura::Window> normal_w1(
+ test::CreateNormalWindow(&delegate, nullptr));
EXPECT_EQ(default_container, normal_w1->parent());
scoped_ptr<aura::Window> normal_m1(test::CreateTransientWindow(
@@ -119,7 +120,7 @@ TEST_F(ModalWindowControllerTest, NestedModalWindows) {
// Creating a modal with always on top creates the modal dialog on top
// most dialog container.
scoped_ptr<aura::Window> top_m0(test::CreateTransientWindow(
- &delegate, NULL, ui::MODAL_TYPE_SYSTEM, true));
+ &delegate, nullptr, ui::MODAL_TYPE_SYSTEM, true));
aura::Window* top_modal_container = FindContainerByPriority(CP_END + 1);
EXPECT_EQ(top_modal_container, top_m0->parent());
« no previous file with comments | « athena/screen/modal_window_controller.cc ('k') | athena/screen/screen_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698