| Index: content/browser/dom_storage/dom_storage_browsertest.cc
|
| diff --git a/content/browser/dom_storage/dom_storage_browsertest.cc b/content/browser/dom_storage/dom_storage_browsertest.cc
|
| index 9fc8c417dc9abfabf766044b437fa7b581bc1234..ad93aeaea4447c07573d6cee7b6513b3021eb44d 100644
|
| --- a/content/browser/dom_storage/dom_storage_browsertest.cc
|
| +++ b/content/browser/dom_storage/dom_storage_browsertest.cc
|
| @@ -2,9 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "base/command_line.h"
|
| #include "content/browser/web_contents/web_contents_impl.h"
|
| #include "content/common/dom_storage/dom_storage_types.h"
|
| #include "content/public/common/content_paths.h"
|
| +#include "content/public/common/content_switches.h"
|
| #include "content/public/test/browser_test_utils.h"
|
| #include "content/public/test/content_browser_test.h"
|
| #include "content/public/test/content_browser_test_utils.h"
|
| @@ -36,6 +38,14 @@ class DOMStorageBrowserTest : public ContentBrowserTest {
|
| }
|
| };
|
|
|
| +class MojoDOMStorageBrowserTest : public DOMStorageBrowserTest {
|
| + public:
|
| + void SetUpCommandLine(base::CommandLine* command_line) override {
|
| + ContentBrowserTest::SetUpCommandLine(command_line);
|
| + command_line->AppendSwitch(switches::kMojoLocalStorage);
|
| + }
|
| +};
|
| +
|
| static const bool kIncognito = true;
|
| static const bool kNotIncognito = false;
|
|
|
| @@ -47,4 +57,14 @@ IN_PROC_BROWSER_TEST_F(DOMStorageBrowserTest, SanityCheckIncognito) {
|
| SimpleTest(GetTestUrl("dom_storage", "sanity_check.html"), kIncognito);
|
| }
|
|
|
| +// TODO(michaeln): Enable the mojo tests after crbug/608121 is fixed.
|
| +IN_PROC_BROWSER_TEST_F(MojoDOMStorageBrowserTest, DISABLED_SanityCheck) {
|
| + SimpleTest(GetTestUrl("dom_storage", "sanity_check.html"), kNotIncognito);
|
| +}
|
| +
|
| +IN_PROC_BROWSER_TEST_F(MojoDOMStorageBrowserTest,
|
| + DISABLED_SanityCheckIncognito) {
|
| + SimpleTest(GetTestUrl("dom_storage", "sanity_check.html"), kIncognito);
|
| +}
|
| +
|
| } // namespace content
|
|
|