Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6601)

Unified Diff: chrome/browser/extensions/platform_app_browsertest_util.h

Issue 23003004: Move apps tests from c/b/extensions to c/b/apps and refine DEPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct ordering in typi Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/platform_app_browsertest_util.h
diff --git a/chrome/browser/extensions/platform_app_browsertest_util.h b/chrome/browser/extensions/platform_app_browsertest_util.h
deleted file mode 100644
index 6cc179b1ab46268a61243f41fa8f3ebda7cbc698..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/platform_app_browsertest_util.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_
-#define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_
-
-
-#include "apps/shell_window.h"
-#include "chrome/browser/extensions/extension_apitest.h"
-
-namespace content {
-class WebContents;
-}
-
-class CommandLine;
-
-namespace extensions {
-class Extension;
-
-class PlatformAppBrowserTest : public ExtensionApiTest {
- public:
- PlatformAppBrowserTest();
-
- virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
-
- protected:
- // Runs the app named |name| out of the platform_apps subdirectory. Waits
- // until it is launched.
- const Extension* LoadAndLaunchPlatformApp(const char* name);
-
- // Installs and runs the app named |name| out of the platform_apps
- // subdirectory. Waits until it is launched.
- const Extension* InstallAndLaunchPlatformApp(const char* name);
-
- // Gets the WebContents associated with the first shell window that is found
- // (most tests only deal with one platform app window, so this is good
- // enough).
- content::WebContents* GetFirstShellWindowWebContents();
-
- // Gets the first shell window that is found (most tests only deal with one
- // platform app window, so this is good enough).
- apps::ShellWindow* GetFirstShellWindow();
-
- // Runs chrome.windows.getAll for the given extension and returns the number
- // of windows that the function returns.
- size_t RunGetWindowsFunctionForExtension(const Extension* extension);
-
- // Runs chrome.windows.get(|window_id|) for the the given extension and
- // returns whether or not a window was found.
- bool RunGetWindowFunctionForExtension(int window_id,
- const Extension* extension);
-
- // Returns the number of shell windows.
- size_t GetShellWindowCount();
-
- // The command line already has an argument on it - about:blank, which
- // is set by InProcessBrowserTest::PrepareTestCommandLine. For platform app
- // launch tests we need to clear this.
- void ClearCommandLineArgs();
-
- // Sets up the command line for running platform apps.
- void SetCommandLineArg(const std::string& test_file);
-
- // Creates an empty shell window for |extension|.
- apps::ShellWindow* CreateShellWindow(const Extension* extension);
-
- apps::ShellWindow* CreateShellWindowFromParams(
- const Extension* extension,
- const apps::ShellWindow::CreateParams& params);
-
- // Closes |window| and waits until it's gone.
- void CloseShellWindow(apps::ShellWindow* window);
-
- // Call AdjustBoundsToBeVisibleOnScreen of |window|.
- void CallAdjustBoundsToBeVisibleOnScreenForShellWindow(
- apps::ShellWindow* window,
- const gfx::Rect& cached_bounds,
- const gfx::Rect& cached_screen_bounds,
- const gfx::Rect& current_screen_bounds,
- const gfx::Size& minimum_size,
- gfx::Rect* bounds);
-};
-
-class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest {
- public:
- virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_
« no previous file with comments | « chrome/browser/extensions/platform_app_browsertest.cc ('k') | chrome/browser/extensions/platform_app_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698