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 | 5 |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/ui/browser_commands.h" | 22 #include "chrome/browser/ui/browser_commands.h" |
23 #include "chrome/browser/ui/browser_window.h" | 23 #include "chrome/browser/ui/browser_window.h" |
24 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 24 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
25 #include "chrome/test/base/in_process_browser_test.h" | 25 #include "chrome/test/base/in_process_browser_test.h" |
26 #include "chrome/test/base/ui_test_utils.h" | 26 #include "chrome/test/base/ui_test_utils.h" |
27 #include "content/public/common/page_zoom.h" | 27 #include "content/public/common/page_zoom.h" |
28 #include "content/public/common/url_constants.h" | 28 #include "content/public/common/url_constants.h" |
29 #include "extensions/common/manifest_constants.h" | 29 #include "extensions/common/manifest_constants.h" |
30 #include "extensions/common/test_util.h" | 30 #include "extensions/common/test_util.h" |
31 #include "net/test/spawned_test_server/spawned_test_server.h" | 31 #include "net/test/spawned_test_server/spawned_test_server.h" |
32 #include "ui/gfx/rect.h" | 32 #include "ui/gfx/geometry/rect.h" |
33 | 33 |
34 namespace extensions { | 34 namespace extensions { |
35 | 35 |
36 namespace keys = tabs_constants; | 36 namespace keys = tabs_constants; |
37 namespace utils = extension_function_test_utils; | 37 namespace utils = extension_function_test_utils; |
38 | 38 |
39 namespace { | 39 namespace { |
40 | 40 |
41 class ExtensionTabsTest : public InProcessBrowserTest { | 41 class ExtensionTabsTest : public InProcessBrowserTest { |
42 }; | 42 }; |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 // Test chrome.tabs.setZoom(). | 957 // Test chrome.tabs.setZoom(). |
958 error = RunSetZoomExpectError(tab_id, 3.14159); | 958 error = RunSetZoomExpectError(tab_id, 3.14159); |
959 EXPECT_TRUE(MatchPattern(error, manifest_errors::kCannotAccessChromeUrl)); | 959 EXPECT_TRUE(MatchPattern(error, manifest_errors::kCannotAccessChromeUrl)); |
960 | 960 |
961 // chrome.tabs.setZoomSettings(). | 961 // chrome.tabs.setZoomSettings(). |
962 error = RunSetZoomSettingsExpectError(tab_id, "manual", "per-tab"); | 962 error = RunSetZoomSettingsExpectError(tab_id, "manual", "per-tab"); |
963 EXPECT_TRUE(MatchPattern(error, manifest_errors::kCannotAccessChromeUrl)); | 963 EXPECT_TRUE(MatchPattern(error, manifest_errors::kCannotAccessChromeUrl)); |
964 } | 964 } |
965 | 965 |
966 } // namespace extensions | 966 } // namespace extensions |
OLD | NEW |