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

Side by Side Diff: chrome/browser/browsing_data_filesystem_helper_unittest.cc

Issue 7063020: Adding `browsing_data_filesystem_helper*` as the first step towards content settings UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding webkit/quota to chrome/DEPS Created 9 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "testing/gtest/include/gtest/gtest.h"
6
7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/browsing_data_filesystem_helper.h"
9 #include "chrome/test/testing_browser_process_test.h"
10 #include "chrome/test/testing_profile.h"
11
12 namespace {
13
14 typedef TestingBrowserProcessTest CannedBrowsingDataFilesystemHelperTest;
15
16 TEST_F(CannedBrowsingDataFilesystemHelperTest, Empty) {
17 TestingProfile profile;
18
19 const GURL origin("http://host1:1/");
20
21 scoped_refptr<CannedBrowsingDataFilesystemHelper> helper(
22 new CannedBrowsingDataFilesystemHelper(&profile));
23
24 ASSERT_TRUE(helper->empty());
25 helper->AddFilesystem(origin, fileapi::kFileSystemTypeTemporary);
26 ASSERT_FALSE(helper->empty());
27 helper->Reset();
28 ASSERT_TRUE(helper->empty());
29 }
30
31 } // namespace
Paweł Hajdan Jr. 2011/05/24 16:30:31 nit: Two spaces between "}" and "// namespace"
Mike West 2011/05/24 16:53:51 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698