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

Side by Side Diff: chrome/browser/extensions/api/declarative/declarative_rule_unittest.cc

Issue 48643003: Moved extension and value builder code to extensions component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 years, 1 month 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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698