Chromium Code Reviews| 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 | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..aecdc95cb70ca03dcaeb93f06e4f6489f19d0f2c | 
| --- /dev/null | 
| +++ b/content/browser/in_process_webkit/indexed_db_uitest.cc | 
| @@ -0,0 +1,49 @@ | 
| +// Copyright (c) 2011 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", | 
| +}; | 
| + | 
| +class IndexedDBUILayoutTest : public UILayoutTest { | 
| + protected: | 
| + IndexedDBUILayoutTest() | 
| + : UILayoutTest(), | 
| + test_dir_(FilePath(). | 
| + AppendASCII("storage").AppendASCII("indexeddb")) { | 
| + } | 
| + | 
| + virtual ~IndexedDBUILayoutTest() { } | 
| + | 
| + virtual void SetUp() { | 
| + UILayoutTest::SetUp(); | 
| 
 
michaeln
2012/01/10 21:22:41
why is this override needed?
 
dgrogan
2012/01/11 08:27:18
Whoops, it's a vestige.  Removed.
 
 | 
| + } | 
| + | 
| + void AddJSTestResources() { | 
| + // Add other paths our tests require. | 
| + FilePath js_dir = FilePath(). | 
| + AppendASCII("fast").AppendASCII("js"); | 
| + AddResourceForLayoutTest(js_dir, 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); | 
| +} |