Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: extensions/common/user_script_unittest.cc

Issue 19678004: Move UserScript and Extension switches to top-level extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« extensions/common/switches.cc ('K') | « extensions/common/user_script.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698