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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/file_util.h" | |
9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/extensions/convert_user_script.h" | 14 #include "chrome/browser/extensions/convert_user_script.h" |
15 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
16 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" | 16 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" |
17 #include "extensions/common/constants.h" | 17 #include "extensions/common/constants.h" |
18 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 EXPECT_EQ(Manifest::TYPE_USER_SCRIPT, extension->GetType()); | 252 EXPECT_EQ(Manifest::TYPE_USER_SCRIPT, extension->GetType()); |
253 | 253 |
254 // Validate run location. | 254 // Validate run location. |
255 ASSERT_EQ(1u, ContentScriptsInfo::GetContentScripts(extension.get()).size()); | 255 ASSERT_EQ(1u, ContentScriptsInfo::GetContentScripts(extension.get()).size()); |
256 const UserScript& script = | 256 const UserScript& script = |
257 ContentScriptsInfo::GetContentScripts(extension.get())[0]; | 257 ContentScriptsInfo::GetContentScripts(extension.get())[0]; |
258 EXPECT_EQ(UserScript::DOCUMENT_IDLE, script.run_location()); | 258 EXPECT_EQ(UserScript::DOCUMENT_IDLE, script.run_location()); |
259 } | 259 } |
260 | 260 |
261 } // namespace extensions | 261 } // namespace extensions |
OLD | NEW |