Chromium Code Reviews| Index: chrome/browser/chrome_quota_permission_context_browsertest.cc |
| diff --git a/chrome/browser/chrome_quota_permission_context_browsertest.cc b/chrome/browser/chrome_quota_permission_context_browsertest.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..768ab6d2c45edbcd5abc0eb1c05db6bc561155f4 |
| --- /dev/null |
| +++ b/chrome/browser/chrome_quota_permission_context_browsertest.cc |
| @@ -0,0 +1,28 @@ |
| +// 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. |
| + |
| +#include "base/utf_string_conversions.h" |
| +#include "chrome/browser/extensions/extension_browsertest.h" |
| +#include "chrome/browser/extensions/extension_service.h" |
| +#include "chrome/browser/extensions/extension_tab_util.h" |
| +#include "chrome/browser/ui/browser.h" |
| +#include "chrome/browser/ui/browser_tabstrip.h" |
| +#include "chrome/common/chrome_switches.h" |
| +#include "chrome/common/extensions/extension.h" |
| +#include "chrome/test/base/ui_test_utils.h" |
|
kinuko
2012/09/20 04:43:57
this looks a bit too many includes for this small
tzik
2012/09/20 05:18:37
Ah, I forgot to drop that. Done.
|
| + |
| +using extensions::Extension; |
|
kinuko
2012/09/20 04:43:57
do we need this?
tzik
2012/09/20 05:18:37
Done. Removed.
|
| + |
| +class QuotaPermissionBrowserTest : public ExtensionBrowserTest { |
| + public: |
| +}; |
| + |
| +IN_PROC_BROWSER_TEST_F(QuotaPermissionBrowserTest, RequestQuotaInBackground) { |
| + ASSERT_TRUE(test_server()->Start()); |
| + ASSERT_TRUE(LoadExtension( |
| + test_data_dir_.AppendASCII("browsertest") |
| + .AppendASCII("request_quota_background"))); |
| + |
| + ASSERT_TRUE(WaitForPageActionVisibilityChangeTo(0)); |
| +} |