OLD | NEW |
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 #include "base/file_path.h" | 5 #include "base/file_path.h" |
6 #include "content/test/layout_browsertest.h" | 6 #include "content/test/layout_browsertest.h" |
7 | 7 |
8 class IndexedDBLayoutTest : public InProcessBrowserLayoutTest { | 8 class IndexedDBLayoutTest : public InProcessBrowserLayoutTest { |
9 public: | 9 public: |
10 IndexedDBLayoutTest() : InProcessBrowserLayoutTest( | 10 IndexedDBLayoutTest() : InProcessBrowserLayoutTest( |
11 FilePath().AppendASCII("storage").AppendASCII("indexeddb")) { | 11 FilePath(), FilePath().AppendASCII("storage").AppendASCII("indexeddb")) { |
12 } | 12 } |
13 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { | 13 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { |
14 InProcessBrowserLayoutTest::SetUpInProcessBrowserTestFixture(); | 14 InProcessBrowserLayoutTest::SetUpInProcessBrowserTestFixture(); |
15 AddResourceForLayoutTest( | 15 AddResourceForLayoutTest( |
16 FilePath().AppendASCII("fast").AppendASCII("js"), | 16 FilePath().AppendASCII("fast").AppendASCII("js"), |
17 FilePath().AppendASCII("resources")); | 17 FilePath().AppendASCII("resources")); |
18 } | 18 } |
19 }; | 19 }; |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 static const char* kLayoutTestFileNames[] = { | 23 static const char* kLayoutTestFileNames[] = { |
24 "basics.html", | 24 "basics.html", |
25 "basics-shared-workers.html", | 25 "basics-shared-workers.html", |
26 "basics-workers.html", | 26 "basics-workers.html", |
27 "index-basics.html", | 27 "index-basics.html", |
28 "objectstore-basics.html", | 28 "objectstore-basics.html", |
29 "prefetch-bugfix-108071.html", | 29 "prefetch-bugfix-108071.html", |
30 }; | 30 }; |
31 | 31 |
32 } | 32 } |
33 | 33 |
34 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, FirstTest) { | 34 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, FirstTest) { |
35 for (size_t i = 0; i < arraysize(kLayoutTestFileNames); ++i) | 35 for (size_t i = 0; i < arraysize(kLayoutTestFileNames); ++i) |
36 RunLayoutTest(kLayoutTestFileNames[i]); | 36 RunLayoutTest(kLayoutTestFileNames[i]); |
37 } | 37 } |
OLD | NEW |