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/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/pickle.h" | 6 #include "base/pickle.h" |
7 #include "chrome/common/extensions/user_script.h" | 7 #include "extensions/common/user_script.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 static const int kAllSchemes = | 13 static const int kAllSchemes = |
14 URLPattern::SCHEME_HTTP | | 14 URLPattern::SCHEME_HTTP | |
15 URLPattern::SCHEME_HTTPS | | 15 URLPattern::SCHEME_HTTPS | |
16 URLPattern::SCHEME_FILE | | 16 URLPattern::SCHEME_FILE | |
17 URLPattern::SCHEME_FTP | | 17 URLPattern::SCHEME_FTP | |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 ASSERT_EQ(script1.url_patterns(), script2.url_patterns()); | 211 ASSERT_EQ(script1.url_patterns(), script2.url_patterns()); |
212 ASSERT_EQ(script1.exclude_url_patterns(), script2.exclude_url_patterns()); | 212 ASSERT_EQ(script1.exclude_url_patterns(), script2.exclude_url_patterns()); |
213 } | 213 } |
214 | 214 |
215 TEST(ExtensionUserScriptTest, Defaults) { | 215 TEST(ExtensionUserScriptTest, Defaults) { |
216 UserScript script; | 216 UserScript script; |
217 ASSERT_EQ(UserScript::DOCUMENT_IDLE, script.run_location()); | 217 ASSERT_EQ(UserScript::DOCUMENT_IDLE, script.run_location()); |
218 } | 218 } |
219 | 219 |
220 } // namespace extensions | 220 } // namespace extensions |
OLD | NEW |