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

Side by Side Diff: chrome/browser/chromeos/customization_document_unittest.cc

Issue 25112004: Move statistics_provider to chromeos/system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments Created 7 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/customization_document.h" 5 #include "chrome/browser/chromeos/customization_document.h"
6 6
7 #include "chrome/browser/chromeos/system/mock_statistics_provider.h" 7 #include "chromeos/system/mock_statistics_provider.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace { 11 namespace {
12 12
13 const char kGoodStartupManifest[] = 13 const char kGoodStartupManifest[] =
14 "{" 14 "{"
15 " \"version\": \"1.0\"," 15 " \"version\": \"1.0\","
16 " \"initial_locale\" : \"en-US\"," 16 " \"initial_locale\" : \"en-US\","
17 " \"initial_timezone\" : \"US/Pacific\"," 17 " \"initial_timezone\" : \"US/Pacific\","
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 EXPECT_EQ("http://mario/ru", customization.GetSupportPage("ru-RU")); 156 EXPECT_EQ("http://mario/ru", customization.GetSupportPage("ru-RU"));
157 EXPECT_EQ("http://mario/global", customization.GetSupportPage("ja")); 157 EXPECT_EQ("http://mario/global", customization.GetSupportPage("ja"));
158 } 158 }
159 159
160 TEST(ServicesCustomizationDocumentTest, BadManifest) { 160 TEST(ServicesCustomizationDocumentTest, BadManifest) {
161 ServicesCustomizationDocument customization(kBadManifest); 161 ServicesCustomizationDocument customization(kBadManifest);
162 EXPECT_FALSE(customization.IsReady()); 162 EXPECT_FALSE(customization.IsReady());
163 } 163 }
164 164
165 } // namespace chromeos 165 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/customization_document.cc ('k') | chrome/browser/chromeos/extensions/echo_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698