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

Side by Side Diff: ash/system/web_notification/web_notification_tray_unittest.cc

Issue 684783004: Prefix CommandLine usage with base namespace (Part 4: ash/) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 1 month 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
« no previous file with comments | « ash/system/tray/tray_details_view_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ash/system/web_notification/web_notification_tray.h" 5 #include "ash/system/web_notification/web_notification_tray.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/display/display_manager.h" 9 #include "ash/display/display_manager.h"
10 #include "ash/root_window_controller.h" 10 #include "ash/root_window_controller.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 }; 88 };
89 89
90 } // namespace 90 } // namespace
91 91
92 class WebNotificationTrayTest : public test::AshTestBase { 92 class WebNotificationTrayTest : public test::AshTestBase {
93 public: 93 public:
94 WebNotificationTrayTest() {} 94 WebNotificationTrayTest() {}
95 ~WebNotificationTrayTest() override {} 95 ~WebNotificationTrayTest() override {}
96 96
97 void SetUp() override { 97 void SetUp() override {
98 CommandLine::ForCurrentProcess()->AppendSwitch( 98 base::CommandLine::ForCurrentProcess()->AppendSwitch(
99 switches::kEnableTouchFeedback); 99 switches::kEnableTouchFeedback);
100 test::AshTestBase::SetUp(); 100 test::AshTestBase::SetUp();
101 } 101 }
102 102
103 void TearDown() override { 103 void TearDown() override {
104 GetMessageCenter()->RemoveAllNotifications(false); 104 GetMessageCenter()->RemoveAllNotifications(false);
105 test::AshTestBase::TearDown(); 105 test::AshTestBase::TearDown();
106 } 106 }
107 107
108 protected: 108 protected:
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 move.time_stamp()+base::TimeDelta::FromMilliseconds(50)); 545 move.time_stamp()+base::TimeDelta::FromMilliseconds(50));
546 generator.Dispatch(&release); 546 generator.Dispatch(&release);
547 RunAllPendingInMessageLoop(); 547 RunAllPendingInMessageLoop();
548 EXPECT_FALSE(tray->draw_background_as_active()); 548 EXPECT_FALSE(tray->draw_background_as_active());
549 EXPECT_FALSE(tray->IsMessageCenterBubbleVisible()); 549 EXPECT_FALSE(tray->IsMessageCenterBubbleVisible());
550 } 550 }
551 551
552 #endif // OS_CHROMEOS 552 #endif // OS_CHROMEOS
553 553
554 } // namespace ash 554 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/tray_details_view_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698