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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_uitest.cc

Issue 9108004: IndexedDB: Run cursor-prefetch webkit layout test as ui test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments; add DEPS change necessary for buildbots Created 8 years, 11 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/file_path.h"
6 #include "base/file_util.h"
7 #include "base/test/test_timeouts.h"
8 #include "chrome/test/automation/tab_proxy.h"
9 #include "chrome/test/base/ui_test_utils.h"
10 #include "chrome/test/ui/ui_layout_test.h"
11 #include "content/public/common/content_switches.h"
12 #include "net/base/net_util.h"
13
14 static const char* kLayoutTestFileNames[] = {
15 // TODO(dgrogan): Put the other IDB layout tests here.
16 "prefetch-bugfix-108071.html",
17 };
18
19 class IndexedDBUILayoutTest : public UILayoutTest {
20 protected:
21 IndexedDBUILayoutTest()
22 : UILayoutTest(),
23 test_dir_(FilePath().
24 AppendASCII("storage").AppendASCII("indexeddb")) {
25 }
26
27 virtual ~IndexedDBUILayoutTest() { }
28
29 virtual void SetUp() {
30 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.
31 }
32
33 void AddJSTestResources() {
34 // Add other paths our tests require.
35 FilePath js_dir = FilePath().
36 AppendASCII("fast").AppendASCII("js");
37 AddResourceForLayoutTest(js_dir, FilePath().AppendASCII("resources"));
38 }
39
40 FilePath test_dir_;
41 };
42
43 TEST_F(IndexedDBUILayoutTest, LayoutTests) {
44 const int port = kNoHttpPort;
45 InitializeForLayoutTest(test_dir_, FilePath(), port);
46 AddJSTestResources();
47 for (size_t i = 0; i < arraysize(kLayoutTestFileNames); ++i)
48 RunLayoutTest(kLayoutTestFileNames[i], port);
49 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698