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

Side by Side Diff: chrome/browser/extensions/api/declarative_content/content_condition_unittest.cc

Issue 149213003: Cleanup: Fix some lint/style errors in extensions code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 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 "chrome/browser/extensions/api/declarative_content/content_condition.h" 5 #include "chrome/browser/extensions/api/declarative_content/content_condition.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/test/values_test_util.h" 10 #include "base/test/values_test_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/extensions/api/declarative_content/content_constants.h" 12 #include "chrome/browser/extensions/api/declarative_content/content_constants.h"
13 #include "components/url_matcher/url_matcher.h" 13 #include "components/url_matcher/url_matcher.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "url/gurl.h"
16 17
17 using testing::ElementsAre; 18 using testing::ElementsAre;
18 using testing::HasSubstr; 19 using testing::HasSubstr;
19 using url_matcher::URLMatcher; 20 using url_matcher::URLMatcher;
20 using url_matcher::URLMatcherConditionSet; 21 using url_matcher::URLMatcherConditionSet;
21 22
22 namespace extensions { 23 namespace extensions {
23 namespace { 24 namespace {
24 25
25 TEST(DeclarativeContentConditionTest, UnknownConditionName) { 26 TEST(DeclarativeContentConditionTest, UnknownConditionName) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 111
111 EXPECT_TRUE(result->IsFulfilled(match_data)); 112 EXPECT_TRUE(result->IsFulfilled(match_data));
112 113
113 match_data.css_selectors.clear(); 114 match_data.css_selectors.clear();
114 match_data.css_selectors.insert("body"); 115 match_data.css_selectors.insert("body");
115 EXPECT_FALSE(result->IsFulfilled(match_data)); 116 EXPECT_FALSE(result->IsFulfilled(match_data));
116 } 117 }
117 118
118 } // namespace 119 } // namespace
119 } // namespace extensions 120 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698