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

Side by Side Diff: chrome/browser/extensions/extension_apitest.h

Issue 10080017: Switch platform apps from a declarative launch container to handling an onLaunched event. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove debug logging code Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 41
42 // Launch the test page in an incognito window. 42 // Launch the test page in an incognito window.
43 kFlagUseIncognito = 1 << 1, 43 kFlagUseIncognito = 1 << 1,
44 44
45 // Allow file access for the extension. 45 // Allow file access for the extension.
46 kFlagEnableFileAccess = 1 << 2, 46 kFlagEnableFileAccess = 1 << 2,
47 47
48 // Loads the extension with location COMPONENT. 48 // Loads the extension with location COMPONENT.
49 kFlagLoadAsComponent = 1 << 3, 49 kFlagLoadAsComponent = 1 << 3,
50 50
51 // Launch the extension in a platform app shell. 51 // Launch the extension as a platform app.
52 kFlagLaunchAppShell = 1 << 4 52 kFlagLaunchPlatformApp = 1 << 4
53 }; 53 };
54 54
55 ExtensionApiTest(); 55 ExtensionApiTest();
56 virtual ~ExtensionApiTest(); 56 virtual ~ExtensionApiTest();
57 57
58 protected: 58 protected:
59 // Helper class that observes tests failing or passing. Observation starts 59 // Helper class that observes tests failing or passing. Observation starts
60 // when the class is constructed. Get the next result by calling 60 // when the class is constructed. Get the next result by calling
61 // GetNextResult() and message() if GetNextResult() return false. If there 61 // GetNextResult() and message() if GetNextResult() return false. If there
62 // are no results, this method will pump the UI message loop until one is 62 // are no results, this method will pump the UI message loop until one is
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // apps (if any). 173 // apps (if any).
174 class PlatformAppApiTest : public ExtensionApiTest { 174 class PlatformAppApiTest : public ExtensionApiTest {
175 public: 175 public:
176 PlatformAppApiTest(); 176 PlatformAppApiTest();
177 virtual ~PlatformAppApiTest(); 177 virtual ~PlatformAppApiTest();
178 178
179 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 179 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
180 }; 180 };
181 181
182 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ 182 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer_browsertest.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698