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

Unified Diff: content/browser/in_process_webkit/indexed_db_uitest.cc

Issue 9693065: Run IDB layout test suite as browser tests instead of ui tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some style stuff Created 8 years, 9 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: content/browser/in_process_webkit/indexed_db_uitest.cc
diff --git a/content/browser/in_process_webkit/indexed_db_uitest.cc b/content/browser/in_process_webkit/indexed_db_uitest.cc
deleted file mode 100644
index 3b8b0106b42becc1bf095fcd2398a12c22d3f109..0000000000000000000000000000000000000000
--- a/content/browser/in_process_webkit/indexed_db_uitest.cc
+++ /dev/null
@@ -1,65 +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.
-
-#include "base/file_path.h"
-#include "base/file_util.h"
-#include "base/test/test_timeouts.h"
-#include "chrome/test/automation/tab_proxy.h"
-#include "chrome/test/base/ui_test_utils.h"
-#include "chrome/test/ui/ui_layout_test.h"
-#include "content/public/common/content_switches.h"
-#include "net/base/net_util.h"
-
-static const char* kLayoutTestFileNames[] = {
- // TODO(dgrogan): Put the other IDB layout tests here.
- "prefetch-bugfix-108071.html",
- "basics.html",
-// "objectstore-basics.html", // Too big: crbug.com/33472
-// "index-basics.html", // Too big.
-};
-
-static const char* kWorkerTestFileNames[] = {
- "basics-workers.html",
- "basics-shared-workers.html",
-// "objectstore-basics-workers.html", // Too big.
-};
-
-class IndexedDBUILayoutTest : public UILayoutTest {
- protected:
- IndexedDBUILayoutTest()
- : UILayoutTest(),
- test_dir_(FilePath().
- AppendASCII("storage").AppendASCII("indexeddb")) {
- }
-
- virtual ~IndexedDBUILayoutTest() { }
-
- void AddJSTestResources() {
- // Add other paths our tests require.
- AddResourceForLayoutTest(
- FilePath().AppendASCII("fast").AppendASCII("js"),
- FilePath().AppendASCII("resources"));
- AddResourceForLayoutTest(
- FilePath().AppendASCII("fast").AppendASCII("filesystem"),
- FilePath().AppendASCII("resources"));
- }
-
- FilePath test_dir_;
-};
-
-TEST_F(IndexedDBUILayoutTest, LayoutTests) {
- const int port = kNoHttpPort;
- InitializeForLayoutTest(test_dir_, FilePath(), port);
- AddJSTestResources();
- for (size_t i = 0; i < arraysize(kLayoutTestFileNames); ++i)
- RunLayoutTest(kLayoutTestFileNames[i], port);
-}
-
-TEST_F(IndexedDBUILayoutTest, WorkerLayoutTests) {
- const int port = kNoHttpPort;
- InitializeForLayoutTest(test_dir_, FilePath(), port);
- AddJSTestResources();
- for (size_t i = 0; i < arraysize(kWorkerTestFileNames); ++i)
- RunLayoutTest(kWorkerTestFileNames[i], port);
-}
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_layout_browsertest.cc ('k') | content/renderer/dom_automation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698