| OLD | NEW |
| 1 // Copyright (c) 2009 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/gtk/gtk_expanded_container.h" | 5 #include "chrome/browser/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() |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |