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

Side by Side Diff: ui/views/widget/widget_unittest.cc

Issue 14890005: Enable Clang warnings in .cc files for Linux+[Aura/ChromeOS] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « device/bluetooth/bluetooth_experimental_chromeos_unittest.cc ('k') | no next file » | 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "ui/base/events/event_utils.h" 10 #include "ui/base/events/event_utils.h"
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 class DesktopAuraFullscreenChildWindowDestructionTest 1341 class DesktopAuraFullscreenChildWindowDestructionTest
1342 : public views::TestViewsDelegate, 1342 : public views::TestViewsDelegate,
1343 public aura::WindowObserver { 1343 public aura::WindowObserver {
1344 public: 1344 public:
1345 DesktopAuraFullscreenChildWindowDestructionTest() 1345 DesktopAuraFullscreenChildWindowDestructionTest()
1346 : full_screen_widget_(NULL), 1346 : full_screen_widget_(NULL),
1347 child_window_(NULL), 1347 child_window_(NULL),
1348 parent_destroyed_(false), 1348 parent_destroyed_(false),
1349 child_destroyed_(false) {} 1349 child_destroyed_(false) {}
1350 1350
1351 ~DesktopAuraFullscreenChildWindowDestructionTest() { 1351 virtual ~DesktopAuraFullscreenChildWindowDestructionTest() {
1352 EXPECT_TRUE(parent_destroyed_); 1352 EXPECT_TRUE(parent_destroyed_);
1353 EXPECT_TRUE(child_destroyed_); 1353 EXPECT_TRUE(child_destroyed_);
1354 full_screen_widget_ = NULL; 1354 full_screen_widget_ = NULL;
1355 child_window_ = NULL; 1355 child_window_ = NULL;
1356 } 1356 }
1357 1357
1358 // views::TestViewsDelegate overrides. 1358 // views::TestViewsDelegate overrides.
1359 virtual void OnBeforeWidgetInit( 1359 virtual void OnBeforeWidgetInit(
1360 Widget::InitParams* params, 1360 Widget::InitParams* params,
1361 internal::NativeWidgetDelegate* delegate) OVERRIDE { 1361 internal::NativeWidgetDelegate* delegate) OVERRIDE {
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 gfx::Point click_location(45, 15); 1780 gfx::Point click_location(45, 15);
1781 ui::MouseEvent press(ui::ET_MOUSE_PRESSED, click_location, click_location, 1781 ui::MouseEvent press(ui::ET_MOUSE_PRESSED, click_location, click_location,
1782 ui::EF_LEFT_MOUSE_BUTTON); 1782 ui::EF_LEFT_MOUSE_BUTTON);
1783 widget->OnMouseEvent(&press); 1783 widget->OnMouseEvent(&press);
1784 1784
1785 // Yay we did not crash! 1785 // Yay we did not crash!
1786 } 1786 }
1787 1787
1788 } // namespace 1788 } // namespace
1789 } // namespace views 1789 } // namespace views
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_experimental_chromeos_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698