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

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: Fix dependency problem 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_api/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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 EXPECT_EQ(0, gdata_service_->num_download_requests()); 406 EXPECT_EQ(0, gdata_service_->num_download_requests());
407 407
408 // When we're back online, the update should happen. 408 // When we're back online, the update should happen.
409 gdata_service_->reset_stats(); 409 gdata_service_->reset_stats();
410 test_api_->NotifyAboutNetworkStateChange(true); 410 test_api_->NotifyAboutNetworkStateChange(true);
411 EXPECT_EQ(1, gdata_service_->num_download_requests()); 411 EXPECT_EQ(1, gdata_service_->num_download_requests());
412 } 412 }
413 413
414 } // namespace test 414 } // namespace test
415 } // namespace contacts 415 } // namespace contacts
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698