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

Side by Side Diff: ui/base/gtk/gtk_expanded_container_unittest.cc

Issue 7740003: content: Move gtk_expanded_container to ui/base/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and retry failing windows compile Created 9 years, 3 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 | « ui/base/gtk/gtk_expanded_container.cc ('k') | ui/ui.gyp » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/gtk/gtk_expanded_container.h" 5 #include "ui/base/gtk/gtk_expanded_container.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 class GtkExpandedContainerTest : public testing::Test { 9 class GtkExpandedContainerTest : public testing::Test {
10 protected: 10 protected:
11 GtkExpandedContainerTest() 11 GtkExpandedContainerTest()
12 : window_(gtk_window_new(GTK_WINDOW_TOPLEVEL)), 12 : window_(gtk_window_new(GTK_WINDOW_TOPLEVEL)),
13 expanded_(gtk_expanded_container_new()) { 13 expanded_(gtk_expanded_container_new()) {
14 gtk_window_set_default_size(GTK_WINDOW(window_), 200, 200); 14 gtk_window_set_default_size(GTK_WINDOW(window_), 200, 200);
15 gtk_container_add(GTK_CONTAINER(window_), expanded_); 15 gtk_container_add(GTK_CONTAINER(window_), expanded_);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 gtk_widget_show_all(window_); 150 gtk_widget_show_all(window_);
151 151
152 EXPECT_EQ(10, GetChildX(child)); 152 EXPECT_EQ(10, GetChildX(child));
153 EXPECT_EQ(20, GetChildY(child)); 153 EXPECT_EQ(20, GetChildY(child));
154 154
155 gtk_expanded_container_move(GTK_EXPANDED_CONTAINER(expanded_), 155 gtk_expanded_container_move(GTK_EXPANDED_CONTAINER(expanded_),
156 child, 40, 50); 156 child, 40, 50);
157 EXPECT_EQ(40, GetChildX(child)); 157 EXPECT_EQ(40, GetChildX(child));
158 EXPECT_EQ(50, GetChildY(child)); 158 EXPECT_EQ(50, GetChildY(child));
159 } 159 }
OLDNEW
« no previous file with comments | « ui/base/gtk/gtk_expanded_container.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698