OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/extensions/api/declarative/declarative_rule.h" | 5 #include "chrome/browser/extensions/api/declarative/declarative_rule.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/test/values_test_util.h" | 9 #include "base/test/values_test_util.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/common/extensions/extension_builder.h" | 11 #include "extensions/common/extension_builder.h" |
12 #include "extensions/common/matcher/url_matcher_constants.h" | 12 #include "extensions/common/matcher/url_matcher_constants.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace extensions { | 16 namespace extensions { |
17 | 17 |
18 using base::test::ParseJson; | 18 using base::test::ParseJson; |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 extension.get(), | 425 extension.get(), |
426 base::Time(), | 426 base::Time(), |
427 json_rule, | 427 json_rule, |
428 base::Bind(AtLeastOneCondition), | 428 base::Bind(AtLeastOneCondition), |
429 &error); | 429 &error); |
430 EXPECT_FALSE(rule); | 430 EXPECT_FALSE(rule); |
431 EXPECT_EQ("No conditions", error); | 431 EXPECT_EQ("No conditions", error); |
432 } | 432 } |
433 | 433 |
434 } // namespace extensions | 434 } // namespace extensions |
OLD | NEW |