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

Side by Side Diff: chrome/browser/sync/credential_cache_service_win_unittest.cc

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 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) 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 <string> 5 #include <string>
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/sync/credential_cache_service_win.h" 13 #include "chrome/browser/sync/credential_cache_service_win.h"
14 #include "chrome/common/chrome_constants.h" 14 #include "chrome/common/chrome_constants.h"
15 #include "chrome/common/net/gaia/gaia_constants.h"
16 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "google_apis/gaia/gaia_constants.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 class CredentialCacheServiceTest : public CredentialCacheService, 21 class CredentialCacheServiceTest : public CredentialCacheService,
22 public testing::Test { 22 public testing::Test {
23 public: 23 public:
24 CredentialCacheServiceTest() 24 CredentialCacheServiceTest()
25 : CredentialCacheService(NULL), 25 : CredentialCacheService(NULL),
26 file_message_loop_(MessageLoop::TYPE_IO) {} 26 file_message_loop_(MessageLoop::TYPE_IO) {}
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 TEST_F(CredentialCacheServiceTest, TestWriteAndReadTimestamps) { 134 TEST_F(CredentialCacheServiceTest, TestWriteAndReadTimestamps) {
135 // Write a timestamp. 135 // Write a timestamp.
136 WriteLastCacheUpdateTime(); 136 WriteLastCacheUpdateTime();
137 137
138 // Make sure that the correct field was written, and it is not in the future. 138 // Make sure that the correct field was written, and it is not in the future.
139 base::Time time(GetLastCacheUpdateTime(local_store())); 139 base::Time time(GetLastCacheUpdateTime(local_store()));
140 ASSERT_LE(time, base::Time::Now()); 140 ASSERT_LE(time, base::Time::Now());
141 } 141 }
142 142
143 } // namespace syncer 143 } // namespace syncer
OLDNEW
« no previous file with comments | « chrome/browser/sync/credential_cache_service_win.cc ('k') | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698