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/value_store/value_store_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 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/value_store/value_store_unittest.h" 5 #include "chrome/browser/value_store/value_store_unittest.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 9
10 using content::BrowserThread; 10 using content::BrowserThread;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 ValueStoreTest::ValueStoreTest() 125 ValueStoreTest::ValueStoreTest()
126 : key1_("foo"), 126 : key1_("foo"),
127 key2_("bar"), 127 key2_("bar"),
128 key3_("baz"), 128 key3_("baz"),
129 empty_dict_(new DictionaryValue()), 129 empty_dict_(new DictionaryValue()),
130 dict1_(new DictionaryValue()), 130 dict1_(new DictionaryValue()),
131 dict3_(new DictionaryValue()), 131 dict3_(new DictionaryValue()),
132 dict12_(new DictionaryValue()), 132 dict12_(new DictionaryValue()),
133 dict123_(new DictionaryValue()), 133 dict123_(new DictionaryValue()),
134 ui_thread_(BrowserThread::UI, MessageLoop::current()), 134 ui_thread_(BrowserThread::UI, base::MessageLoop::current()),
135 file_thread_(BrowserThread::FILE, MessageLoop::current()) { 135 file_thread_(BrowserThread::FILE, base::MessageLoop::current()) {
136 val1_.reset(Value::CreateStringValue(key1_ + "Value")); 136 val1_.reset(Value::CreateStringValue(key1_ + "Value"));
137 val2_.reset(Value::CreateStringValue(key2_ + "Value")); 137 val2_.reset(Value::CreateStringValue(key2_ + "Value"));
138 val3_.reset(Value::CreateStringValue(key3_ + "Value")); 138 val3_.reset(Value::CreateStringValue(key3_ + "Value"));
139 139
140 list1_.push_back(key1_); 140 list1_.push_back(key1_);
141 list2_.push_back(key2_); 141 list2_.push_back(key2_);
142 list3_.push_back(key3_); 142 list3_.push_back(key3_);
143 list12_.push_back(key1_); 143 list12_.push_back(key1_);
144 list12_.push_back(key2_); 144 list12_.push_back(key2_);
145 list13_.push_back(key1_); 145 list13_.push_back(key1_);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 } 470 }
471 { 471 {
472 ValueStoreChangeList changes; 472 ValueStoreChangeList changes;
473 changes.push_back(ValueStoreChange(key3_, val3_->DeepCopy(), NULL)); 473 changes.push_back(ValueStoreChange(key3_, val3_->DeepCopy(), NULL));
474 changes.push_back( 474 changes.push_back(
475 ValueStoreChange("qwerty", val3_->DeepCopy(), NULL)); 475 ValueStoreChange("qwerty", val3_->DeepCopy(), NULL));
476 EXPECT_PRED_FORMAT2(ChangesEq, changes, storage_->Clear()); 476 EXPECT_PRED_FORMAT2(ChangesEq, changes, storage_->Clear());
477 EXPECT_PRED_FORMAT2(ChangesEq, ValueStoreChangeList(), storage_->Clear()); 477 EXPECT_PRED_FORMAT2(ChangesEq, ValueStoreChangeList(), storage_->Clear());
478 } 478 }
479 } 479 }
OLDNEW
« no previous file with comments | « chrome/browser/value_store/value_store_unittest.h ('k') | chrome/browser/web_resource/promo_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698