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/string16.h" | 5 #include "base/string16.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 7 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
8 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 8 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
9 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.h" |
10 #include "content/test/test_browser_thread.h" | 10 #include "content/public/test/test_browser_thread.h" |
11 #include "net/cookies/cookie_monster.h" | 11 #include "net/cookies/cookie_monster.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 | 14 |
15 using content::BrowserThread; | 15 using content::BrowserThread; |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 class MockSiteDataObserver | 19 class MockSiteDataObserver |
20 : public TabSpecificContentSettings::SiteDataObserver { | 20 : public TabSpecificContentSettings::SiteDataObserver { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 UTF8ToUTF16("text"), | 203 UTF8ToUTF16("text"), |
204 blocked_by_policy); | 204 blocked_by_policy); |
205 content_settings.OnLocalStorageAccessed(GURL("http://google.com"), | 205 content_settings.OnLocalStorageAccessed(GURL("http://google.com"), |
206 true, | 206 true, |
207 blocked_by_policy); | 207 blocked_by_policy); |
208 content_settings.OnWebDatabaseAccessed(GURL("http://google.com"), | 208 content_settings.OnWebDatabaseAccessed(GURL("http://google.com"), |
209 UTF8ToUTF16("name"), | 209 UTF8ToUTF16("name"), |
210 UTF8ToUTF16("display_name"), | 210 UTF8ToUTF16("display_name"), |
211 blocked_by_policy); | 211 blocked_by_policy); |
212 } | 212 } |
OLD | NEW |