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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/QuotaTrackerTest.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "modules/webdatabase/QuotaTracker.h" 5 #include "modules/webdatabase/QuotaTracker.h"
6 6
7 #include "platform/weborigin/SecurityOrigin.h" 7 #include "platform/weborigin/SecurityOrigin.h"
8 #include "platform/wtf/RefPtr.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 #include "wtf/RefPtr.h"
10 10
11 namespace blink { 11 namespace blink {
12 namespace { 12 namespace {
13 13
14 TEST(QuotaTrackerTest, UpdateAndGetSizeAndSpaceAvailable) { 14 TEST(QuotaTrackerTest, UpdateAndGetSizeAndSpaceAvailable) {
15 QuotaTracker& tracker = QuotaTracker::Instance(); 15 QuotaTracker& tracker = QuotaTracker::Instance();
16 RefPtr<SecurityOrigin> origin = 16 RefPtr<SecurityOrigin> origin =
17 SecurityOrigin::CreateFromString("file:///a/b/c"); 17 SecurityOrigin::CreateFromString("file:///a/b/c");
18 18
19 const unsigned long long kSpaceAvailable = 12345678ULL; 19 const unsigned long long kSpaceAvailable = 12345678ULL;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 unsigned long long available = 0; 51 unsigned long long available = 0;
52 tracker.GetDatabaseSizeAndSpaceAvailableToOrigin(origin.Get(), database_name, 52 tracker.GetDatabaseSizeAndSpaceAvailableToOrigin(origin.Get(), database_name,
53 &used, &available); 53 &used, &available);
54 54
55 EXPECT_EQ(used, kDatabaseSize); 55 EXPECT_EQ(used, kDatabaseSize);
56 EXPECT_EQ(available, kSpaceAvailable); 56 EXPECT_EQ(available, kSpaceAvailable);
57 } 57 }
58 58
59 } // namespace 59 } // namespace
60 } // namespace blink 60 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698