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

Side by Side Diff: components/search_engines/default_search_policy_handler_unittest.cc

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "components/policy/core/browser/configuration_policy_pref_store.h" 6 #include "components/policy/core/browser/configuration_policy_pref_store.h"
7 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" 7 #include "components/policy/core/browser/configuration_policy_pref_store_test.h"
8 #include "components/search_engines/default_search_manager.h" 8 #include "components/search_engines/default_search_manager.h"
9 #include "components/search_engines/default_search_policy_handler.h" 9 #include "components/search_engines/default_search_policy_handler.h"
10 #include "components/search_engines/search_engines_pref_names.h" 10 #include "components/search_engines/search_engines_pref_names.h"
(...skipping 11 matching lines...) Expand all
22 class DefaultSearchPolicyHandlerTest 22 class DefaultSearchPolicyHandlerTest
23 : public ConfigurationPolicyPrefStoreTest { 23 : public ConfigurationPolicyPrefStoreTest {
24 public: 24 public:
25 DefaultSearchPolicyHandlerTest() { 25 DefaultSearchPolicyHandlerTest() {
26 default_alternate_urls_.AppendString( 26 default_alternate_urls_.AppendString(
27 "http://www.google.com/#q={searchTerms}"); 27 "http://www.google.com/#q={searchTerms}");
28 default_alternate_urls_.AppendString( 28 default_alternate_urls_.AppendString(
29 "http://www.google.com/search#q={searchTerms}"); 29 "http://www.google.com/search#q={searchTerms}");
30 } 30 }
31 31
32 virtual void SetUp() override { 32 void SetUp() override {
33 handler_list_.AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 33 handler_list_.AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
34 new DefaultSearchPolicyHandler)); 34 new DefaultSearchPolicyHandler));
35 } 35 }
36 36
37 protected: 37 protected:
38 static const char kSearchURL[]; 38 static const char kSearchURL[];
39 static const char kSuggestURL[]; 39 static const char kSuggestURL[];
40 static const char kIconURL[]; 40 static const char kIconURL[];
41 static const char kName[]; 41 static const char kName[];
42 static const char kKeyword[]; 42 static const char kKeyword[];
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 temp->GetAsDictionary(&dictionary); 511 temp->GetAsDictionary(&dictionary);
512 512
513 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kURL, &value)); 513 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kURL, &value));
514 EXPECT_EQ(kFileSearchURL, value); 514 EXPECT_EQ(kFileSearchURL, value);
515 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kShortName, &value)); 515 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kShortName, &value));
516 EXPECT_EQ("_", value); 516 EXPECT_EQ("_", value);
517 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kKeyword, &value)); 517 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kKeyword, &value));
518 EXPECT_EQ("_", value); 518 EXPECT_EQ("_", value);
519 } 519 }
520 } // namespace policy 520 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698