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

Side by Side Diff: src/platform/window_manager/panel_bar_test.cc

Issue 501116: wm: Update namespace and header define guards. (Closed)
Patch Set: move using directive inside of namespace for consistency Created 11 years 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 (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 <gflags/gflags.h> 5 #include <gflags/gflags.h>
6 #include <gtest/gtest.h> 6 #include <gtest/gtest.h>
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "window_manager/clutter_interface.h" 10 #include "window_manager/clutter_interface.h"
11 #include "window_manager/mock_x_connection.h" 11 #include "window_manager/mock_x_connection.h"
12 #include "window_manager/panel.h" 12 #include "window_manager/panel.h"
13 #include "window_manager/panel_bar.h" 13 #include "window_manager/panel_bar.h"
14 #include "window_manager/shadow.h" 14 #include "window_manager/shadow.h"
15 #include "window_manager/test_lib.h" 15 #include "window_manager/test_lib.h"
16 #include "window_manager/util.h" 16 #include "window_manager/util.h"
17 #include "window_manager/window.h" 17 #include "window_manager/window.h"
18 #include "window_manager/window_manager.h" 18 #include "window_manager/window_manager.h"
19 #include "window_manager/wm_ipc.h" 19 #include "window_manager/wm_ipc.h"
20 20
21 DEFINE_bool(logtostderr, false, 21 DEFINE_bool(logtostderr, false,
22 "Print debugging messages to stderr (suppressed otherwise)"); 22 "Print debugging messages to stderr (suppressed otherwise)");
23 23
24 namespace chromeos { 24 namespace window_manager {
25 25
26 class PanelBarTest : public BasicWindowManagerTest { 26 class PanelBarTest : public BasicWindowManagerTest {
27 protected: 27 protected:
28 virtual void SetUp() { 28 virtual void SetUp() {
29 BasicWindowManagerTest::SetUp(); 29 BasicWindowManagerTest::SetUp();
30 panel_bar_ = wm_->panel_bar_.get(); 30 panel_bar_ = wm_->panel_bar_.get();
31 } 31 }
32 32
33 PanelBar* panel_bar_; // instance belonging to 'wm_' 33 PanelBar* panel_bar_; // instance belonging to 'wm_'
34 }; 34 };
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 1, // source indication: client app 169 1, // source indication: client app
170 CurrentTime, 170 CurrentTime,
171 None, // currently-active window 171 None, // currently-active window
172 None); 172 None);
173 EXPECT_TRUE(wm_->HandleEvent(&event)); 173 EXPECT_TRUE(wm_->HandleEvent(&event));
174 EXPECT_TRUE(panel->is_expanded()); 174 EXPECT_TRUE(panel->is_expanded());
175 EXPECT_EQ(panel_xid, xconn_->focused_xid()); 175 EXPECT_EQ(panel_xid, xconn_->focused_xid());
176 EXPECT_EQ(panel_xid, GetActiveWindowProperty()); 176 EXPECT_EQ(panel_xid, GetActiveWindowProperty());
177 } 177 }
178 178
179 } // namespace chromeos 179 } // namespace window_manager
180 180
181 int main(int argc, char **argv) { 181 int main(int argc, char **argv) {
182 return chromeos::InitAndRunTests(&argc, argv, &FLAGS_logtostderr); 182 return window_manager::InitAndRunTests(&argc, argv, &FLAGS_logtostderr);
183 } 183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698