OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/json/json_reader.h" | 6 #include "base/json/json_reader.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "content/browser/devtools/renderer_overrides_handler.h" | 8 #include "content/browser/devtools/renderer_overrides_handler.h" |
9 #include "content/public/browser/devtools_agent_host.h" | 9 #include "content/public/browser/devtools_agent_host.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| 11 #include "content/public/test/content_browser_test.h" |
| 12 #include "content/public/test/content_browser_test_utils.h" |
11 #include "content/shell/browser/shell.h" | 13 #include "content/shell/browser/shell.h" |
12 #include "content/test/content_browser_test.h" | |
13 #include "content/test/content_browser_test_utils.h" | |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class RendererOverridesHandlerTest : public ContentBrowserTest { | 17 class RendererOverridesHandlerTest : public ContentBrowserTest { |
18 protected: | 18 protected: |
19 scoped_refptr<DevToolsProtocol::Response> SendCommand( | 19 scoped_refptr<DevToolsProtocol::Response> SendCommand( |
20 const std::string& method, | 20 const std::string& method, |
21 base::DictionaryValue* params) { | 21 base::DictionaryValue* params) { |
22 scoped_ptr<RendererOverridesHandler> handler(CreateHandler()); | 22 scoped_ptr<RendererOverridesHandler> handler(CreateHandler()); |
23 scoped_refptr<DevToolsProtocol::Command> command( | 23 scoped_refptr<DevToolsProtocol::Command> command( |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 EXPECT_TRUE(HasValue("quota.persistent")); | 92 EXPECT_TRUE(HasValue("quota.persistent")); |
93 EXPECT_TRUE(HasValue("quota.temporary")); | 93 EXPECT_TRUE(HasValue("quota.temporary")); |
94 EXPECT_TRUE(HasListItem("usage.temporary", "id", "appcache")); | 94 EXPECT_TRUE(HasListItem("usage.temporary", "id", "appcache")); |
95 EXPECT_TRUE(HasListItem("usage.temporary", "id", "database")); | 95 EXPECT_TRUE(HasListItem("usage.temporary", "id", "database")); |
96 EXPECT_TRUE(HasListItem("usage.temporary", "id", "indexeddatabase")); | 96 EXPECT_TRUE(HasListItem("usage.temporary", "id", "indexeddatabase")); |
97 EXPECT_TRUE(HasListItem("usage.temporary", "id", "filesystem")); | 97 EXPECT_TRUE(HasListItem("usage.temporary", "id", "filesystem")); |
98 EXPECT_TRUE(HasListItem("usage.persistent", "id", "filesystem")); | 98 EXPECT_TRUE(HasListItem("usage.persistent", "id", "filesystem")); |
99 } | 99 } |
100 | 100 |
101 } // namespace content | 101 } // namespace content |
OLD | NEW |