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 <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 expected_extensions_ = expected_extensions; | 67 expected_extensions_ = expected_extensions; |
68 provider_->VisitRegisteredExtension(); | 68 provider_->VisitRegisteredExtension(); |
69 EXPECT_TRUE(expected_extensions_.empty()); | 69 EXPECT_TRUE(expected_extensions_.empty()); |
70 } | 70 } |
71 | 71 |
72 bool OnExternalExtensionFileFound(const std::string& id, | 72 bool OnExternalExtensionFileFound(const std::string& id, |
73 const Version* version, | 73 const Version* version, |
74 const base::FilePath& path, | 74 const base::FilePath& path, |
75 Manifest::Location unused, | 75 Manifest::Location unused, |
76 int unused2, | 76 int unused2, |
77 bool unused3) override { | 77 bool unused3, |
| 78 bool unused4) override { |
78 ADD_FAILURE() << "There should be no external extensions from files."; | 79 ADD_FAILURE() << "There should be no external extensions from files."; |
79 return false; | 80 return false; |
80 } | 81 } |
81 | 82 |
82 bool OnExternalExtensionUpdateUrlFound(const std::string& id, | 83 bool OnExternalExtensionUpdateUrlFound(const std::string& id, |
83 const std::string& install_parameter, | 84 const std::string& install_parameter, |
84 const GURL& update_url, | 85 const GURL& update_url, |
85 Manifest::Location location, | 86 Manifest::Location location, |
86 int unused1, | 87 int unused1, |
87 bool unused2) override { | 88 bool unused2) override { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 forced_extensions.SetString("invalid", "http://www.example.com/crx"); | 146 forced_extensions.SetString("invalid", "http://www.example.com/crx"); |
146 forced_extensions.SetString("dddddddddddddddddddddddddddddddd", | 147 forced_extensions.SetString("dddddddddddddddddddddddddddddddd", |
147 std::string()); | 148 std::string()); |
148 forced_extensions.SetString("invalid", "bad"); | 149 forced_extensions.SetString("invalid", "bad"); |
149 | 150 |
150 MockExternalPolicyProviderVisitor mv; | 151 MockExternalPolicyProviderVisitor mv; |
151 mv.Visit(forced_extensions, expected_extensions); | 152 mv.Visit(forced_extensions, expected_extensions); |
152 } | 153 } |
153 | 154 |
154 } // namespace extensions | 155 } // namespace extensions |
OLD | NEW |