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

Side by Side Diff: ios/chrome/browser/geolocation/omnibox_geolocation_local_state_unittest.mm

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/prefs/testing_pref_service.h" 9 #include "components/prefs/testing_pref_service.h"
10 #include "ios/chrome/browser/geolocation/location_manager.h" 10 #include "ios/chrome/browser/geolocation/location_manager.h"
11 #include "ios/chrome/browser/geolocation/omnibox_geolocation_local_state.h" 11 #include "ios/chrome/browser/geolocation/omnibox_geolocation_local_state.h"
12 #include "ios/chrome/test/ios_chrome_scoped_testing_local_state.h" 12 #include "ios/chrome/test/ios_chrome_scoped_testing_local_state.h"
13 #include "ios/chrome/test/testing_application_context.h" 13 #include "ios/chrome/test/testing_application_context.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/gtest_mac.h" 15 #include "testing/gtest_mac.h"
16 #include "testing/platform_test.h" 16 #include "testing/platform_test.h"
17 17
18 namespace { 18 namespace {
19 19
(...skipping 12 matching lines...) Expand all
32 32
33 TEST_F(OmniboxGeolocationLocalStateTest, LastAuthorizationAlertVersion) { 33 TEST_F(OmniboxGeolocationLocalStateTest, LastAuthorizationAlertVersion) {
34 EXPECT_TRUE([local_state_ lastAuthorizationAlertVersion].empty()); 34 EXPECT_TRUE([local_state_ lastAuthorizationAlertVersion].empty());
35 35
36 std::string expectedVersion("fakeVersion"); 36 std::string expectedVersion("fakeVersion");
37 [local_state_ setLastAuthorizationAlertVersion:expectedVersion]; 37 [local_state_ setLastAuthorizationAlertVersion:expectedVersion];
38 EXPECT_EQ(expectedVersion, [local_state_ lastAuthorizationAlertVersion]); 38 EXPECT_EQ(expectedVersion, [local_state_ lastAuthorizationAlertVersion]);
39 } 39 }
40 40
41 } // namespace 41 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698