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 "extensions/browser/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 "components/url_matcher/url_matcher_constants.h" | 11 #include "components/url_matcher/url_matcher_constants.h" |
12 #include "extensions/common/extension_builder.h" | 12 #include "extensions/common/extension_builder.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 |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 extension.get(), | 433 extension.get(), |
434 base::Time(), | 434 base::Time(), |
435 json_rule, | 435 json_rule, |
436 base::Bind(AtLeastOneCondition), | 436 base::Bind(AtLeastOneCondition), |
437 &error); | 437 &error); |
438 EXPECT_FALSE(rule); | 438 EXPECT_FALSE(rule); |
439 EXPECT_EQ("No conditions", error); | 439 EXPECT_EQ("No conditions", error); |
440 } | 440 } |
441 | 441 |
442 } // namespace extensions | 442 } // namespace extensions |
OLD | NEW |