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

Side by Side Diff: chrome/common/content_settings_pattern_parser_unittest.cc

Issue 7885006: Moving ContentSettingsPattern from chrome/browser/content_settings to chrome/common. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/content_settings/content_settings_pattern.h" 5 #include "chrome/common/content_settings_pattern.h"
6 #include "chrome/browser/content_settings/content_settings_pattern_parser.h" 6 #include "chrome/common/content_settings_pattern_parser.h"
7 7
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace { 11 namespace {
12 typedef ContentSettingsPattern::BuilderInterface BuilderInterface; 12 typedef ContentSettingsPattern::BuilderInterface BuilderInterface;
13 } // namespace 13 } // namespace
14 14
15 class MockBuilder : public ContentSettingsPattern::BuilderInterface { 15 class MockBuilder : public ContentSettingsPattern::BuilderInterface {
16 public: 16 public:
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 parts.port = "8080"; 148 parts.port = "8080";
149 EXPECT_STREQ("http://www.youtube.com:8080", 149 EXPECT_STREQ("http://www.youtube.com:8080",
150 content_settings::PatternParser::ToString(parts).c_str()); 150 content_settings::PatternParser::ToString(parts).c_str());
151 151
152 parts = ContentSettingsPattern::PatternParts(); 152 parts = ContentSettingsPattern::PatternParts();
153 parts.scheme = "file"; 153 parts.scheme = "file";
154 parts.path = "/foo/bar/test.html"; 154 parts.path = "/foo/bar/test.html";
155 EXPECT_STREQ("file:///foo/bar/test.html", 155 EXPECT_STREQ("file:///foo/bar/test.html",
156 content_settings::PatternParser::ToString(parts).c_str()); 156 content_settings::PatternParser::ToString(parts).c_str());
157 } 157 }
OLDNEW
« no previous file with comments | « chrome/common/content_settings_pattern_parser.cc ('k') | chrome/common/content_settings_pattern_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698