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

Side by Side Diff: chrome/browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc

Issue 1545153002: Switch to standard integer types in chrome/browser/ui/views/. (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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/ui/views/sync/one_click_signin_bubble_view.h" 5 #include "chrome/browser/ui/views/sync/one_click_signin_bubble_view.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/sync/one_click_signin_bubble_delegate.h" 11 #include "chrome/browser/ui/sync/one_click_signin_bubble_delegate.h"
11 #include "content/public/test/test_utils.h" 12 #include "content/public/test/test_utils.h"
12 #include "ui/events/event_utils.h" 13 #include "ui/events/event_utils.h"
13 #include "ui/views/controls/button/label_button.h" 14 #include "ui/views/controls/button/label_button.h"
14 #include "ui/views/test/views_test_base.h" 15 #include "ui/views/test/views_test_base.h"
15 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
16 17
17 class OneClickSigninBubbleViewTest : public views::ViewsTestBase { 18 class OneClickSigninBubbleViewTest : public views::ViewsTestBase {
18 public: 19 public:
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 const ui::Accelerator accelerator(ui::VKEY_ESCAPE, 0); 314 const ui::Accelerator accelerator(ui::VKEY_ESCAPE, 0);
314 view->AcceleratorPressed(accelerator); 315 view->AcceleratorPressed(accelerator);
315 316
316 // View should no longer be showing. The message loop will exit once the 317 // View should no longer be showing. The message loop will exit once the
317 // fade animation of the bubble is done. 318 // fade animation of the bubble is done.
318 content::RunAllPendingInMessageLoop(); 319 content::RunAllPendingInMessageLoop();
319 EXPECT_FALSE(OneClickSigninBubbleView::IsShowing()); 320 EXPECT_FALSE(OneClickSigninBubbleView::IsShowing());
320 EXPECT_TRUE(on_start_sync_called_); 321 EXPECT_TRUE(on_start_sync_called_);
321 EXPECT_EQ(OneClickSigninSyncStarter::UNDO_SYNC, mode_); 322 EXPECT_EQ(OneClickSigninSyncStarter::UNDO_SYNC, mode_);
322 } 323 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698