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

Side by Side Diff: chrome/browser/bookmarks/managed_bookmark_service_unittest.cc

Issue 1233673002: Fix componentization of chrome/browser/bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix "gn check" and compilation on Mac Created 5 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/bookmarks/chrome_bookmark_client.h" 5 #include "components/bookmarks/managed/managed_bookmark_service.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
12 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" 12 #include "chrome/browser/bookmarks/chrome_bookmark_client.h"
13 #include "chrome/browser/bookmarks/chrome_bookmark_client_factory.h" 13 #include "chrome/browser/bookmarks/managed_bookmark_service_factory.h"
14 #include "chrome/test/base/testing_pref_service_syncable.h" 14 #include "chrome/test/base/testing_pref_service_syncable.h"
15 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
16 #include "components/bookmarks/browser/bookmark_model.h" 16 #include "components/bookmarks/browser/bookmark_model.h"
17 #include "components/bookmarks/browser/bookmark_node.h" 17 #include "components/bookmarks/browser/bookmark_node.h"
18 #include "components/bookmarks/browser/bookmark_utils.h" 18 #include "components/bookmarks/browser/bookmark_utils.h"
19 #include "components/bookmarks/common/bookmark_pref_names.h" 19 #include "components/bookmarks/common/bookmark_pref_names.h"
20 #include "components/bookmarks/test/bookmark_test_helpers.h" 20 #include "components/bookmarks/test/bookmark_test_helpers.h"
21 #include "components/bookmarks/test/mock_bookmark_model_observer.h" 21 #include "components/bookmarks/test/mock_bookmark_model_observer.h"
22 #include "content/public/test/test_browser_thread_bundle.h" 22 #include "content/public/test/test_browser_thread_bundle.h"
23 #include "grit/components_strings.h" 23 #include "grit/components_strings.h"
24 #include "testing/gmock/include/gmock/gmock.h" 24 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 #include "ui/base/l10n/l10n_util.h" 26 #include "ui/base/l10n/l10n_util.h"
27 27
28 using bookmarks::BookmarkModel; 28 using bookmarks::BookmarkModel;
29 using bookmarks::BookmarkNode; 29 using bookmarks::BookmarkNode;
30 using bookmarks::ManagedBookmarkService;
30 using testing::Mock; 31 using testing::Mock;
31 using testing::_; 32 using testing::_;
32 33
33 class ChromeBookmarkClientTest : public testing::Test { 34 class ManagedBookmarkServiceTest : public testing::Test {
34 public: 35 public:
35 ChromeBookmarkClientTest() : client_(NULL), model_(NULL) {} 36 ManagedBookmarkServiceTest() : managed_(NULL), model_(NULL) {}
36 ~ChromeBookmarkClientTest() override {} 37 ~ManagedBookmarkServiceTest() override {}
37 38
38 void SetUp() override { 39 void SetUp() override {
39 prefs_ = profile_.GetTestingPrefService(); 40 prefs_ = profile_.GetTestingPrefService();
40 ASSERT_FALSE(prefs_->HasPrefPath(bookmarks::prefs::kManagedBookmarks)); 41 ASSERT_FALSE(prefs_->HasPrefPath(bookmarks::prefs::kManagedBookmarks));
41 42
42 prefs_->SetManagedPref(bookmarks::prefs::kManagedBookmarks, 43 prefs_->SetManagedPref(bookmarks::prefs::kManagedBookmarks,
43 CreateTestTree()); 44 CreateTestTree());
44 ResetModel(); 45 ResetModel();
45 46
46 // The managed node always exists. 47 // The managed node always exists.
47 ASSERT_TRUE(client_->managed_node()); 48 ASSERT_TRUE(managed_->managed_node());
48 ASSERT_TRUE(client_->managed_node()->parent() == model_->root_node()); 49 ASSERT_TRUE(managed_->managed_node()->parent() == model_->root_node());
49 EXPECT_NE(-1, model_->root_node()->GetIndexOf(client_->managed_node())); 50 EXPECT_NE(-1, model_->root_node()->GetIndexOf(managed_->managed_node()));
50 } 51 }
51 52
52 void TearDown() override { model_->RemoveObserver(&observer_); } 53 void TearDown() override { model_->RemoveObserver(&observer_); }
53 54
54 void ResetModel() { 55 void ResetModel() {
55 profile_.CreateBookmarkModel(false); 56 profile_.CreateBookmarkModel(false);
56 model_ = BookmarkModelFactory::GetForProfile(&profile_); 57 model_ = BookmarkModelFactory::GetForProfile(&profile_);
57 bookmarks::test::WaitForBookmarkModelToLoad(model_); 58 bookmarks::test::WaitForBookmarkModelToLoad(model_);
58 model_->AddObserver(&observer_); 59 model_->AddObserver(&observer_);
59 client_ = ChromeBookmarkClientFactory::GetForProfile(&profile_); 60 managed_ = ManagedBookmarkServiceFactory::GetForProfile(&profile_);
60 DCHECK(client_); 61 DCHECK(managed_);
61 } 62 }
62 63
63 static base::DictionaryValue* CreateBookmark(const std::string& title, 64 static base::DictionaryValue* CreateBookmark(const std::string& title,
64 const std::string& url) { 65 const std::string& url) {
65 EXPECT_TRUE(GURL(url).is_valid()); 66 EXPECT_TRUE(GURL(url).is_valid());
66 base::DictionaryValue* dict = new base::DictionaryValue(); 67 base::DictionaryValue* dict = new base::DictionaryValue();
67 dict->SetString("name", title); 68 dict->SetString("name", title);
68 dict->SetString("url", GURL(url).spec()); 69 dict->SetString("url", GURL(url).spec());
69 return dict; 70 return dict;
70 } 71 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } else { 126 } else {
126 return false; 127 return false;
127 } 128 }
128 return true; 129 return true;
129 } 130 }
130 131
131 content::TestBrowserThreadBundle thread_bundle_; 132 content::TestBrowserThreadBundle thread_bundle_;
132 TestingProfile profile_; 133 TestingProfile profile_;
133 TestingPrefServiceSyncable* prefs_; 134 TestingPrefServiceSyncable* prefs_;
134 bookmarks::MockBookmarkModelObserver observer_; 135 bookmarks::MockBookmarkModelObserver observer_;
135 ChromeBookmarkClient* client_; 136 ManagedBookmarkService* managed_;
136 BookmarkModel* model_; 137 BookmarkModel* model_;
137 138
138 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClientTest); 139 DISALLOW_COPY_AND_ASSIGN(ManagedBookmarkServiceTest);
139 }; 140 };
140 141
141 TEST_F(ChromeBookmarkClientTest, EmptyManagedNode) { 142 TEST_F(ManagedBookmarkServiceTest, EmptyManagedNode) {
142 // Verifies that the managed node is empty and invisible when the policy is 143 // Verifies that the managed node is empty and invisible when the policy is
143 // not set. 144 // not set.
144 model_->RemoveObserver(&observer_); 145 model_->RemoveObserver(&observer_);
145 prefs_->RemoveManagedPref(bookmarks::prefs::kManagedBookmarks); 146 prefs_->RemoveManagedPref(bookmarks::prefs::kManagedBookmarks);
146 ResetModel(); 147 ResetModel();
147 148
148 ASSERT_TRUE(client_->managed_node()); 149 ASSERT_TRUE(managed_->managed_node());
149 EXPECT_TRUE(client_->managed_node()->empty()); 150 EXPECT_TRUE(managed_->managed_node()->empty());
150 EXPECT_FALSE(client_->managed_node()->IsVisible()); 151 EXPECT_FALSE(managed_->managed_node()->IsVisible());
151 } 152 }
152 153
153 TEST_F(ChromeBookmarkClientTest, LoadInitial) { 154 TEST_F(ManagedBookmarkServiceTest, LoadInitial) {
154 // Verifies that the initial load picks up the initial policy too. 155 // Verifies that the initial load picks up the initial policy too.
155 EXPECT_TRUE(model_->bookmark_bar_node()->empty()); 156 EXPECT_TRUE(model_->bookmark_bar_node()->empty());
156 EXPECT_TRUE(model_->other_node()->empty()); 157 EXPECT_TRUE(model_->other_node()->empty());
157 EXPECT_FALSE(client_->managed_node()->empty()); 158 EXPECT_FALSE(managed_->managed_node()->empty());
158 EXPECT_TRUE(client_->managed_node()->IsVisible()); 159 EXPECT_TRUE(managed_->managed_node()->IsVisible());
159 160
160 scoped_ptr<base::DictionaryValue> expected(CreateExpectedTree()); 161 scoped_ptr<base::DictionaryValue> expected(CreateExpectedTree());
161 EXPECT_TRUE(NodeMatchesValue(client_->managed_node(), expected.get())); 162 EXPECT_TRUE(NodeMatchesValue(managed_->managed_node(), expected.get()));
162 } 163 }
163 164
164 TEST_F(ChromeBookmarkClientTest, SwapNodes) { 165 TEST_F(ManagedBookmarkServiceTest, SwapNodes) {
165 // Swap the Google bookmark with the Folder. 166 // Swap the Google bookmark with the Folder.
166 scoped_ptr<base::ListValue> updated(CreateTestTree()); 167 scoped_ptr<base::ListValue> updated(CreateTestTree());
167 scoped_ptr<base::Value> removed; 168 scoped_ptr<base::Value> removed;
168 ASSERT_TRUE(updated->Remove(0, &removed)); 169 ASSERT_TRUE(updated->Remove(0, &removed));
169 updated->Append(removed.release()); 170 updated->Append(removed.release());
170 171
171 // These two nodes should just be swapped. 172 // These two nodes should just be swapped.
172 const BookmarkNode* parent = client_->managed_node(); 173 const BookmarkNode* parent = managed_->managed_node();
173 EXPECT_CALL(observer_, BookmarkNodeMoved(model_, parent, 1, parent, 0)); 174 EXPECT_CALL(observer_, BookmarkNodeMoved(model_, parent, 1, parent, 0));
174 prefs_->SetManagedPref(bookmarks::prefs::kManagedBookmarks, 175 prefs_->SetManagedPref(bookmarks::prefs::kManagedBookmarks,
175 updated->DeepCopy()); 176 updated->DeepCopy());
176 Mock::VerifyAndClearExpectations(&observer_); 177 Mock::VerifyAndClearExpectations(&observer_);
177 178
178 // Verify the final tree. 179 // Verify the final tree.
179 scoped_ptr<base::DictionaryValue> expected( 180 scoped_ptr<base::DictionaryValue> expected(
180 CreateFolder(GetManagedFolderTitle(), updated.release())); 181 CreateFolder(GetManagedFolderTitle(), updated.release()));
181 EXPECT_TRUE(NodeMatchesValue(client_->managed_node(), expected.get())); 182 EXPECT_TRUE(NodeMatchesValue(managed_->managed_node(), expected.get()));
182 } 183 }
183 184
184 TEST_F(ChromeBookmarkClientTest, RemoveNode) { 185 TEST_F(ManagedBookmarkServiceTest, RemoveNode) {
185 // Remove the Folder. 186 // Remove the Folder.
186 scoped_ptr<base::ListValue> updated(CreateTestTree()); 187 scoped_ptr<base::ListValue> updated(CreateTestTree());
187 ASSERT_TRUE(updated->Remove(1, NULL)); 188 ASSERT_TRUE(updated->Remove(1, NULL));
188 189
189 const BookmarkNode* parent = client_->managed_node(); 190 const BookmarkNode* parent = managed_->managed_node();
190 EXPECT_CALL(observer_, BookmarkNodeRemoved(model_, parent, 1, _, _)); 191 EXPECT_CALL(observer_, BookmarkNodeRemoved(model_, parent, 1, _, _));
191 prefs_->SetManagedPref(bookmarks::prefs::kManagedBookmarks, 192 prefs_->SetManagedPref(bookmarks::prefs::kManagedBookmarks,
192 updated->DeepCopy()); 193 updated->DeepCopy());
193 Mock::VerifyAndClearExpectations(&observer_); 194 Mock::VerifyAndClearExpectations(&observer_);
194 195
195 // Verify the final tree. 196 // Verify the final tree.
196 scoped_ptr<base::DictionaryValue> expected( 197 scoped_ptr<base::DictionaryValue> expected(
197 CreateFolder(GetManagedFolderTitle(), updated.release())); 198 CreateFolder(GetManagedFolderTitle(), updated.release()));
198 EXPECT_TRUE(NodeMatchesValue(client_->managed_node(), expected.get())); 199 EXPECT_TRUE(NodeMatchesValue(managed_->managed_node(), expected.get()));
199 } 200 }
200 201
201 TEST_F(ChromeBookmarkClientTest, CreateNewNodes) { 202 TEST_F(ManagedBookmarkServiceTest, CreateNewNodes) {
202 // Put all the nodes inside another folder. 203 // Put all the nodes inside another folder.
203 scoped_ptr<base::ListValue> updated(new base::ListValue); 204 scoped_ptr<base::ListValue> updated(new base::ListValue);
204 updated->Append(CreateFolder("Container", CreateTestTree())); 205 updated->Append(CreateFolder("Container", CreateTestTree()));
205 206
206 EXPECT_CALL(observer_, BookmarkNodeAdded(model_, _, _)).Times(5); 207 EXPECT_CALL(observer_, BookmarkNodeAdded(model_, _, _)).Times(5);
207 // The remaining nodes have been pushed to positions 1 and 2; they'll both be 208 // The remaining nodes have been pushed to positions 1 and 2; they'll both be
208 // removed when at position 1. 209 // removed when at position 1.
209 const BookmarkNode* parent = client_->managed_node(); 210 const BookmarkNode* parent = managed_->managed_node();
210 EXPECT_CALL(observer_, BookmarkNodeRemoved(model_, parent, 1, _, _)) 211 EXPECT_CALL(observer_, BookmarkNodeRemoved(model_, parent, 1, _, _)).Times(2);
211 .Times(2);
212 prefs_->SetManagedPref(bookmarks::prefs::kManagedBookmarks, 212 prefs_->SetManagedPref(bookmarks::prefs::kManagedBookmarks,
213 updated->DeepCopy()); 213 updated->DeepCopy());
214 Mock::VerifyAndClearExpectations(&observer_); 214 Mock::VerifyAndClearExpectations(&observer_);
215 215
216 // Verify the final tree. 216 // Verify the final tree.
217 scoped_ptr<base::DictionaryValue> expected( 217 scoped_ptr<base::DictionaryValue> expected(
218 CreateFolder(GetManagedFolderTitle(), updated.release())); 218 CreateFolder(GetManagedFolderTitle(), updated.release()));
219 EXPECT_TRUE(NodeMatchesValue(client_->managed_node(), expected.get())); 219 EXPECT_TRUE(NodeMatchesValue(managed_->managed_node(), expected.get()));
220 } 220 }
221 221
222 TEST_F(ChromeBookmarkClientTest, RemoveAllUserBookmarks) { 222 TEST_F(ManagedBookmarkServiceTest, RemoveAllUserBookmarks) {
223 // Remove the policy. 223 // Remove the policy.
224 const BookmarkNode* parent = client_->managed_node(); 224 const BookmarkNode* parent = managed_->managed_node();
225 EXPECT_CALL(observer_, BookmarkNodeRemoved(model_, parent, 0, _, _)) 225 EXPECT_CALL(observer_, BookmarkNodeRemoved(model_, parent, 0, _, _)).Times(2);
226 .Times(2);
227 prefs_->RemoveManagedPref(bookmarks::prefs::kManagedBookmarks); 226 prefs_->RemoveManagedPref(bookmarks::prefs::kManagedBookmarks);
228 Mock::VerifyAndClearExpectations(&observer_); 227 Mock::VerifyAndClearExpectations(&observer_);
229 228
230 EXPECT_TRUE(client_->managed_node()->empty()); 229 EXPECT_TRUE(managed_->managed_node()->empty());
231 EXPECT_FALSE(client_->managed_node()->IsVisible()); 230 EXPECT_FALSE(managed_->managed_node()->IsVisible());
232 } 231 }
233 232
234 TEST_F(ChromeBookmarkClientTest, IsDescendantOfManagedNode) { 233 TEST_F(ManagedBookmarkServiceTest, IsDescendantOfManagedNode) {
235 EXPECT_FALSE(bookmarks::IsDescendantOf(model_->root_node(), 234 EXPECT_FALSE(
236 client_->managed_node())); 235 bookmarks::IsDescendantOf(model_->root_node(), managed_->managed_node()));
237 EXPECT_FALSE(bookmarks::IsDescendantOf(model_->bookmark_bar_node(), 236 EXPECT_FALSE(bookmarks::IsDescendantOf(model_->bookmark_bar_node(),
238 client_->managed_node())); 237 managed_->managed_node()));
239 EXPECT_FALSE(bookmarks::IsDescendantOf(model_->other_node(), 238 EXPECT_FALSE(bookmarks::IsDescendantOf(model_->other_node(),
240 client_->managed_node())); 239 managed_->managed_node()));
241 EXPECT_FALSE(bookmarks::IsDescendantOf(model_->mobile_node(), 240 EXPECT_FALSE(bookmarks::IsDescendantOf(model_->mobile_node(),
242 client_->managed_node())); 241 managed_->managed_node()));
243 EXPECT_TRUE(bookmarks::IsDescendantOf(client_->managed_node(), 242 EXPECT_TRUE(bookmarks::IsDescendantOf(managed_->managed_node(),
244 client_->managed_node())); 243 managed_->managed_node()));
245 244
246 const BookmarkNode* parent = client_->managed_node(); 245 const BookmarkNode* parent = managed_->managed_node();
247 ASSERT_EQ(2, parent->child_count()); 246 ASSERT_EQ(2, parent->child_count());
248 EXPECT_TRUE(bookmarks::IsDescendantOf(parent->GetChild(0), 247 EXPECT_TRUE(
249 client_->managed_node())); 248 bookmarks::IsDescendantOf(parent->GetChild(0), managed_->managed_node()));
250 EXPECT_TRUE(bookmarks::IsDescendantOf(parent->GetChild(1), 249 EXPECT_TRUE(
251 client_->managed_node())); 250 bookmarks::IsDescendantOf(parent->GetChild(1), managed_->managed_node()));
252 251
253 parent = parent->GetChild(1); 252 parent = parent->GetChild(1);
254 ASSERT_EQ(2, parent->child_count()); 253 ASSERT_EQ(2, parent->child_count());
255 EXPECT_TRUE(bookmarks::IsDescendantOf(parent->GetChild(0), 254 EXPECT_TRUE(
256 client_->managed_node())); 255 bookmarks::IsDescendantOf(parent->GetChild(0), managed_->managed_node()));
257 EXPECT_TRUE(bookmarks::IsDescendantOf(parent->GetChild(1), 256 EXPECT_TRUE(
258 client_->managed_node())); 257 bookmarks::IsDescendantOf(parent->GetChild(1), managed_->managed_node()));
259 } 258 }
260 259
261 TEST_F(ChromeBookmarkClientTest, RemoveAllDoesntRemoveManaged) { 260 TEST_F(ManagedBookmarkServiceTest, RemoveAllDoesntRemoveManaged) {
262 EXPECT_EQ(2, client_->managed_node()->child_count()); 261 EXPECT_EQ(2, managed_->managed_node()->child_count());
263 262
264 EXPECT_CALL(observer_, 263 EXPECT_CALL(observer_,
265 BookmarkNodeAdded(model_, model_->bookmark_bar_node(), 0)); 264 BookmarkNodeAdded(model_, model_->bookmark_bar_node(), 0));
266 EXPECT_CALL(observer_, 265 EXPECT_CALL(observer_,
267 BookmarkNodeAdded(model_, model_->bookmark_bar_node(), 1)); 266 BookmarkNodeAdded(model_, model_->bookmark_bar_node(), 1));
268 model_->AddURL(model_->bookmark_bar_node(), 267 model_->AddURL(model_->bookmark_bar_node(), 0, base::ASCIIToUTF16("Test"),
269 0,
270 base::ASCIIToUTF16("Test"),
271 GURL("http://google.com/")); 268 GURL("http://google.com/"));
272 model_->AddFolder( 269 model_->AddFolder(model_->bookmark_bar_node(), 1,
273 model_->bookmark_bar_node(), 1, base::ASCIIToUTF16("Test Folder")); 270 base::ASCIIToUTF16("Test Folder"));
274 EXPECT_EQ(2, model_->bookmark_bar_node()->child_count()); 271 EXPECT_EQ(2, model_->bookmark_bar_node()->child_count());
275 Mock::VerifyAndClearExpectations(&observer_); 272 Mock::VerifyAndClearExpectations(&observer_);
276 273
277 EXPECT_CALL(observer_, BookmarkAllUserNodesRemoved(model_, _)); 274 EXPECT_CALL(observer_, BookmarkAllUserNodesRemoved(model_, _));
278 model_->RemoveAllUserBookmarks(); 275 model_->RemoveAllUserBookmarks();
279 EXPECT_EQ(2, client_->managed_node()->child_count()); 276 EXPECT_EQ(2, managed_->managed_node()->child_count());
280 EXPECT_EQ(0, model_->bookmark_bar_node()->child_count()); 277 EXPECT_EQ(0, model_->bookmark_bar_node()->child_count());
281 Mock::VerifyAndClearExpectations(&observer_); 278 Mock::VerifyAndClearExpectations(&observer_);
282 } 279 }
283 280
284 TEST_F(ChromeBookmarkClientTest, HasDescendantsOfManagedNode) { 281 TEST_F(ManagedBookmarkServiceTest, HasDescendantsOfManagedNode) {
285 const BookmarkNode* user_node = model_->AddURL(model_->other_node(), 282 const BookmarkNode* user_node =
286 0, 283 model_->AddURL(model_->other_node(), 0, base::ASCIIToUTF16("foo bar"),
287 base::ASCIIToUTF16("foo bar"), 284 GURL("http://www.google.com"));
288 GURL("http://www.google.com")); 285 const BookmarkNode* managed_node = managed_->managed_node()->GetChild(0);
289 const BookmarkNode* managed_node = client_->managed_node()->GetChild(0);
290 ASSERT_TRUE(managed_node); 286 ASSERT_TRUE(managed_node);
291 287
292 std::vector<const BookmarkNode*> nodes; 288 std::vector<const BookmarkNode*> nodes;
293 EXPECT_FALSE(bookmarks::HasDescendantsOf(nodes, client_->managed_node())); 289 EXPECT_FALSE(bookmarks::HasDescendantsOf(nodes, managed_->managed_node()));
294 nodes.push_back(user_node); 290 nodes.push_back(user_node);
295 EXPECT_FALSE(bookmarks::HasDescendantsOf(nodes, client_->managed_node())); 291 EXPECT_FALSE(bookmarks::HasDescendantsOf(nodes, managed_->managed_node()));
296 nodes.push_back(managed_node); 292 nodes.push_back(managed_node);
297 EXPECT_TRUE(bookmarks::HasDescendantsOf(nodes, client_->managed_node())); 293 EXPECT_TRUE(bookmarks::HasDescendantsOf(nodes, managed_->managed_node()));
298 } 294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698