| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/apps/app_browsertest_util.h" | 5 #include "chrome/browser/apps/app_browsertest_util.h" |
| 6 #include "extensions/browser/app_window/native_app_window.h" | 6 #include "extensions/browser/app_window/native_app_window.h" |
| 7 | 7 |
| 8 using extensions::Extension; | 8 namespace extensions { |
| 9 using extensions::NativeAppWindow; | |
| 10 | |
| 11 namespace apps { | |
| 12 | 9 |
| 13 namespace { | 10 namespace { |
| 14 | 11 |
| 15 typedef extensions::PlatformAppBrowserTest AppWindowBrowserTest; | 12 typedef PlatformAppBrowserTest AppWindowBrowserTest; |
| 16 | 13 |
| 17 // This test is disabled on Linux because of the unpredictable nature of native | 14 // This test is disabled on Linux because of the unpredictable nature of native |
| 18 // windows. We cannot assume that the window manager will insert any title bar | 15 // windows. We cannot assume that the window manager will insert any title bar |
| 19 // at all, so the test may fail on certain window managers. | 16 // at all, so the test may fail on certain window managers. |
| 20 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 17 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 21 #define MAYBE_FrameInsetsForDefaultFrame DISABLED_FrameInsetsForDefaultFrame | 18 #define MAYBE_FrameInsetsForDefaultFrame DISABLED_FrameInsetsForDefaultFrame |
| 22 #else | 19 #else |
| 23 #define MAYBE_FrameInsetsForDefaultFrame FrameInsetsForDefaultFrame | 20 #define MAYBE_FrameInsetsForDefaultFrame FrameInsetsForDefaultFrame |
| 24 #endif | 21 #endif |
| 25 | 22 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 EXPECT_EQ(0, insets.top()); | 69 EXPECT_EQ(0, insets.top()); |
| 73 EXPECT_EQ(0, insets.bottom()); | 70 EXPECT_EQ(0, insets.bottom()); |
| 74 EXPECT_EQ(0, insets.left()); | 71 EXPECT_EQ(0, insets.left()); |
| 75 EXPECT_EQ(0, insets.right()); | 72 EXPECT_EQ(0, insets.right()); |
| 76 | 73 |
| 77 CloseAppWindow(app_window); | 74 CloseAppWindow(app_window); |
| 78 } | 75 } |
| 79 | 76 |
| 80 } // namespace | 77 } // namespace |
| 81 | 78 |
| 82 } // namespace apps | 79 } // namespace extensions |
| OLD | NEW |