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

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

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 4 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 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 "components/search_engines/default_search_policy_handler.h" 5 #include "components/search_engines/default_search_policy_handler.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "components/policy/core/browser/configuration_policy_pref_store.h" 10 #include "components/policy/core/browser/configuration_policy_pref_store.h"
11 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" 11 #include "components/policy/core/browser/configuration_policy_pref_store_test.h"
12 #include "components/policy/core/common/policy_types.h" 12 #include "components/policy/core/common/policy_types.h"
13 #include "components/policy/policy_constants.h"
13 #include "components/search_engines/default_search_manager.h" 14 #include "components/search_engines/default_search_manager.h"
14 #include "components/search_engines/search_engines_pref_names.h" 15 #include "components/search_engines/search_engines_pref_names.h"
15 #include "policy/policy_constants.h"
16 16
17 namespace { 17 namespace {
18 // TODO(caitkp): Should we find a way to route this through DefaultSearchManager 18 // TODO(caitkp): Should we find a way to route this through DefaultSearchManager
19 // to avoid hardcoding this here? 19 // to avoid hardcoding this here?
20 const char kDefaultSearchProviderData[] = 20 const char kDefaultSearchProviderData[] =
21 "default_search_provider_data.template_url_data"; 21 "default_search_provider_data.template_url_data";
22 } // namespace 22 } // namespace
23 23
24 namespace policy { 24 namespace policy {
25 25
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 temp->GetAsDictionary(&dictionary); 311 temp->GetAsDictionary(&dictionary);
312 312
313 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kURL, &value)); 313 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kURL, &value));
314 EXPECT_EQ(kFileSearchURL, value); 314 EXPECT_EQ(kFileSearchURL, value);
315 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kShortName, &value)); 315 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kShortName, &value));
316 EXPECT_EQ("_", value); 316 EXPECT_EQ("_", value);
317 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kKeyword, &value)); 317 EXPECT_TRUE(dictionary->GetString(DefaultSearchManager::kKeyword, &value));
318 EXPECT_EQ("_", value); 318 EXPECT_EQ("_", value);
319 } 319 }
320 } // namespace policy 320 } // namespace policy
OLDNEW
« no previous file with comments | « components/search_engines/default_search_policy_handler.cc ('k') | components/sync/driver/sync_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698