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

Side by Side Diff: chrome/browser/chromeos/contacts/google_contact_store_unittest.cc

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflect comments 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 "chrome/browser/chromeos/contacts/google_contact_store.h" 5 #include "chrome/browser/chromeos/contacts/google_contact_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.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/time.h" 10 #include "base/time.h"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "chrome/browser/chromeos/contacts/contact.pb.h" 12 #include "chrome/browser/chromeos/contacts/contact.pb.h"
13 #include "chrome/browser/chromeos/contacts/contact_store_observer.h" 13 #include "chrome/browser/chromeos/contacts/contact_store_observer.h"
14 #include "chrome/browser/chromeos/contacts/contact_test_util.h" 14 #include "chrome/browser/chromeos/contacts/contact_test_util.h"
15 #include "chrome/browser/chromeos/contacts/fake_contact_database.h" 15 #include "chrome/browser/chromeos/contacts/fake_contact_database.h"
16 #include "chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h" 16 #include "chrome/browser/chromeos/gdata/gdata_contacts_service_stub.h"
17 #include "chrome/browser/chromeos/gdata/gdata_util.h" 17 #include "chrome/browser/google_apis/gdata_util.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/test/test_browser_thread.h" 19 #include "content/public/test/test_browser_thread.h"
20 #include "net/base/network_change_notifier.h" 20 #include "net/base/network_change_notifier.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 using content::BrowserThread; 23 using content::BrowserThread;
24 24
25 namespace contacts { 25 namespace contacts {
26 namespace test { 26 namespace test {
27 27
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 EXPECT_EQ(0, gdata_service_->num_download_requests()); 409 EXPECT_EQ(0, gdata_service_->num_download_requests());
410 410
411 // When we're back online, the update should happen. 411 // When we're back online, the update should happen.
412 gdata_service_->reset_stats(); 412 gdata_service_->reset_stats();
413 test_api_->NotifyAboutNetworkStateChange(true); 413 test_api_->NotifyAboutNetworkStateChange(true);
414 EXPECT_EQ(1, gdata_service_->num_download_requests()); 414 EXPECT_EQ(1, gdata_service_->num_download_requests());
415 } 415 }
416 416
417 } // namespace test 417 } // namespace test
418 } // namespace contacts 418 } // namespace contacts
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698