• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #include "chrome/browser/download/download_started_animation.h"
6 #include "chrome/browser/ui/browser.h"
7 #include "chrome/browser/ui/browser_commands.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "chrome/test/base/in_process_browser_test.h"
10 
11 class DownloadStartedAnimationTest : public InProcessBrowserTest {
12  public:
DownloadStartedAnimationTest()13   DownloadStartedAnimationTest() {
14   }
15 
16  private:
17   DISALLOW_COPY_AND_ASSIGN(DownloadStartedAnimationTest);
18 };
19 
IN_PROC_BROWSER_TEST_F(DownloadStartedAnimationTest,InstantiateAndImmediatelyClose)20 IN_PROC_BROWSER_TEST_F(DownloadStartedAnimationTest,
21                        InstantiateAndImmediatelyClose) {
22   content::WebContents* web_contents =
23       browser()->tab_strip_model()->GetActiveWebContents();
24   DownloadStartedAnimation::Show(web_contents);
25   chrome::CloseWindow(browser());
26 }
27