| 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 "athena/activity/public/activity.h" | 5 #include "athena/activity/public/activity.h" |
| 6 #include "athena/activity/public/activity_view_model.h" | 6 #include "athena/activity/public/activity_view_model.h" |
| 7 #include "athena/resource_manager/public/resource_manager.h" | 7 #include "athena/resource_manager/public/resource_manager.h" |
| 8 #include "athena/test/base/test_util.h" | 8 #include "athena/test/base/test_util.h" |
| 9 #include "athena/test/chrome/athena_chrome_browser_test.h" | 9 #include "athena/test/chrome/athena_chrome_browser_test.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "content/public/browser/render_view_host.h" | 12 #include "content/public/browser/render_view_host.h" |
| 13 #include "content/public/browser/render_widget_host_view.h" | 13 #include "content/public/browser/render_widget_host_view.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 #include "ui/compositor/compositor_switches.h" | 15 #include "ui/compositor/compositor_switches.h" |
| 16 #include "ui/gfx/geometry/size.h" |
| 16 #include "ui/gfx/image/image_skia.h" | 17 #include "ui/gfx/image/image_skia.h" |
| 17 #include "ui/gfx/size.h" | |
| 18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 19 | 19 |
| 20 namespace athena { | 20 namespace athena { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 // The test URL to navigate to. | 23 // The test URL to navigate to. |
| 24 const char kTestUrl[] = "chrome:about"; | 24 const char kTestUrl[] = "chrome:about"; |
| 25 | 25 |
| 26 const int kTimeoutMS = 12000; // The timeout: 2 seconds. | 26 const int kTimeoutMS = 12000; // The timeout: 2 seconds. |
| 27 const int kIterationSleepMS = 5; // The wait time in ms per iteration. | 27 const int kIterationSleepMS = 5; // The wait time in ms per iteration. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 activity1->SetCurrentState(Activity::ACTIVITY_VISIBLE); | 137 activity1->SetCurrentState(Activity::ACTIVITY_VISIBLE); |
| 138 test_util::WaitUntilIdle(); | 138 test_util::WaitUntilIdle(); |
| 139 DCHECK_EQ(activity1->GetCurrentState(), Activity::ACTIVITY_VISIBLE); | 139 DCHECK_EQ(activity1->GetCurrentState(), Activity::ACTIVITY_VISIBLE); |
| 140 | 140 |
| 141 DCHECK_EQ(activity1->GetActivityViewModel()->GetOverviewModeImage() | 141 DCHECK_EQ(activity1->GetActivityViewModel()->GetOverviewModeImage() |
| 142 .size().ToString(), | 142 .size().ToString(), |
| 143 gfx::Size().ToString()); | 143 gfx::Size().ToString()); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace athena | 146 } // namespace athena |
| OLD | NEW |