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

Unified Diff: ash/frame/caption_buttons/frame_size_button_unittest.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « ash/frame/caption_buttons/frame_size_button_delegate.h ('k') | ash/frame/custom_frame_view_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/frame/caption_buttons/frame_size_button_unittest.cc
diff --git a/ash/frame/caption_buttons/frame_size_button_unittest.cc b/ash/frame/caption_buttons/frame_size_button_unittest.cc
index a5b23a10b3b110e67b26ccc015ae0b369b05fcb1..56cb9d2ab41e96a2e2c881dcbd7909deafc9f348 100644
--- a/ash/frame/caption_buttons/frame_size_button_unittest.cc
+++ b/ash/frame/caption_buttons/frame_size_button_unittest.cc
@@ -50,7 +50,8 @@ class TestWidgetDelegate : public views::WidgetDelegateView {
// Right align the caption button container.
gfx::Size preferred_size = caption_button_container_->GetPreferredSize();
caption_button_container_->SetBounds(width() - preferred_size.width(), 0,
- preferred_size.width(), preferred_size.height());
+ preferred_size.width(),
+ preferred_size.height());
}
void ViewHierarchyChanged(
@@ -99,8 +100,8 @@ class FrameSizeButtonTest : public AshTestBase {
// Returns true if all three buttons are in the normal state.
bool AllButtonsInNormalState() const {
return minimize_button_->state() == views::Button::STATE_NORMAL &&
- size_button_->state() == views::Button::STATE_NORMAL &&
- close_button_->state() == views::Button::STATE_NORMAL;
+ size_button_->state() == views::Button::STATE_NORMAL &&
+ close_button_->state() == views::Button::STATE_NORMAL;
}
// Creates a widget with |delegate|. The returned widget takes ownership of
@@ -122,16 +123,16 @@ class FrameSizeButtonTest : public AshTestBase {
AshTestBase::SetUp();
TestWidgetDelegate* delegate = new TestWidgetDelegate();
- window_state_ = ash::wm::GetWindowState(
- CreateWidget(delegate)->GetNativeWindow());
+ window_state_ =
+ ash::wm::GetWindowState(CreateWidget(delegate)->GetNativeWindow());
FrameCaptionButtonContainerView::TestApi test(
delegate->caption_button_container());
minimize_button_ = test.minimize_button();
size_button_ = test.size_button();
- static_cast<FrameSizeButton*>(
- size_button_)->set_delay_to_set_buttons_to_snap_mode(0);
+ static_cast<FrameSizeButton*>(size_button_)
+ ->set_delay_to_set_buttons_to_snap_mode(0);
close_button_ = test.close_button();
}
@@ -221,20 +222,16 @@ TEST_F(FrameSizeButtonTest, ButtonDrag) {
// 2) Test with scroll gestures.
// Snap right.
- generator.GestureScrollSequence(
- CenterPointInScreen(size_button()),
- CenterPointInScreen(close_button()),
- base::TimeDelta::FromMilliseconds(100),
- 3);
+ generator.GestureScrollSequence(CenterPointInScreen(size_button()),
+ CenterPointInScreen(close_button()),
+ base::TimeDelta::FromMilliseconds(100), 3);
RunAllPendingInMessageLoop();
EXPECT_TRUE(HasStateType(wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED));
// Snap left.
- generator.GestureScrollSequence(
- CenterPointInScreen(size_button()),
- CenterPointInScreen(minimize_button()),
- base::TimeDelta::FromMilliseconds(100),
- 3);
+ generator.GestureScrollSequence(CenterPointInScreen(size_button()),
+ CenterPointInScreen(minimize_button()),
+ base::TimeDelta::FromMilliseconds(100), 3);
RunAllPendingInMessageLoop();
EXPECT_TRUE(HasStateType(wm::WINDOW_STATE_TYPE_LEFT_SNAPPED));
« no previous file with comments | « ash/frame/caption_buttons/frame_size_button_delegate.h ('k') | ash/frame/custom_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698