| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/macros.h" |
| 5 #include "chrome/browser/download/download_started_animation.h" | 6 #include "chrome/browser/download/download_started_animation.h" |
| 6 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
| 7 #include "chrome/browser/ui/browser_commands.h" | 8 #include "chrome/browser/ui/browser_commands.h" |
| 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 9 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
| 10 | 11 |
| 11 class DownloadStartedAnimationTest : public InProcessBrowserTest { | 12 class DownloadStartedAnimationTest : public InProcessBrowserTest { |
| 12 public: | 13 public: |
| 13 DownloadStartedAnimationTest() { | 14 DownloadStartedAnimationTest() { |
| 14 } | 15 } |
| 15 | 16 |
| 16 private: | 17 private: |
| 17 DISALLOW_COPY_AND_ASSIGN(DownloadStartedAnimationTest); | 18 DISALLOW_COPY_AND_ASSIGN(DownloadStartedAnimationTest); |
| 18 }; | 19 }; |
| 19 | 20 |
| 20 IN_PROC_BROWSER_TEST_F(DownloadStartedAnimationTest, | 21 IN_PROC_BROWSER_TEST_F(DownloadStartedAnimationTest, |
| 21 InstantiateAndImmediatelyClose) { | 22 InstantiateAndImmediatelyClose) { |
| 22 content::WebContents* web_contents = | 23 content::WebContents* web_contents = |
| 23 browser()->tab_strip_model()->GetActiveWebContents(); | 24 browser()->tab_strip_model()->GetActiveWebContents(); |
| 24 DownloadStartedAnimation::Show(web_contents); | 25 DownloadStartedAnimation::Show(web_contents); |
| 25 chrome::CloseWindow(browser()); | 26 chrome::CloseWindow(browser()); |
| 26 } | 27 } |
| OLD | NEW |